fix: cargo clippy --fix && cargo fmt
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
ci/woodpecker/pull_request_closed/build-and-publish Pipeline was successful

This commit is contained in:
BAaboe 2025-07-22 18:50:17 +02:00
parent a3c460a611
commit c26ec49e05
4 changed files with 13 additions and 14 deletions

View file

@ -1,5 +1,6 @@
use diesel::{
delete, insert_into, ExpressionMethods, Insertable, QueryDsl, Queryable, Selectable, SelectableHelper
ExpressionMethods, Insertable, QueryDsl, Queryable, Selectable, SelectableHelper, delete,
insert_into,
};
use diesel_async::RunQueryDsl;
use serde::{Deserialize, Serialize};
@ -119,10 +120,10 @@ impl Member {
member.build(app_state, Some(me)).await
}
pub async fn fetch_one_with_member (
pub async fn fetch_one_with_member(
app_state: &AppState,
me: &Me,
uuid: Uuid
uuid: Uuid,
) -> Result<Self, Error> {
let mut conn = app_state.pool.get().await?;
@ -191,7 +192,7 @@ impl Member {
.filter(guild_members::uuid.eq(self.uuid))
.execute(conn)
.await?;
Ok(())
}
}