style: cargo clippy --fix && cargo fmt
This commit is contained in:
parent
0e0c590e4d
commit
b28d5b840f
3 changed files with 9 additions and 4 deletions
|
@ -45,7 +45,9 @@ pub async fn unban(
|
|||
let mut conn = app_state.pool.get().await?;
|
||||
|
||||
let caller = Member::check_membership(&mut conn, uuid, guild_uuid).await?;
|
||||
caller.check_permission(&app_state, Permissions::BanMember).await?;
|
||||
caller
|
||||
.check_permission(&app_state, Permissions::BanMember)
|
||||
.await?;
|
||||
|
||||
let ban = GuildBan::fetch_one(&mut conn, guild_uuid, user_uuid).await?;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ use axum::{
|
|||
extract::{Multipart, Path, State},
|
||||
http::StatusCode,
|
||||
response::IntoResponse,
|
||||
routing::{get, patch, post, delete},
|
||||
routing::{delete, get, patch, post},
|
||||
};
|
||||
use bytes::Bytes;
|
||||
use uuid::Uuid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue