fmt: clippy and fmt
This commit is contained in:
parent
d0b63190b3
commit
6cbbab80bd
6 changed files with 10 additions and 11 deletions
|
@ -19,7 +19,7 @@ pub async fn run(command: &ApplicationCommandInteraction, ctx: &Context) -> Stri
|
|||
let api_key = if let CommandDataOptionValue::String(key) = command
|
||||
.data
|
||||
.options
|
||||
.get(0)
|
||||
.first()
|
||||
.expect("Expected user option")
|
||||
.resolved
|
||||
.as_ref()
|
||||
|
@ -164,7 +164,7 @@ async fn add_server(db: &Pool<Sqlite>, ctx: &Context, server: &Servers) -> Resul
|
|||
if past_remove {
|
||||
roles_remove.push(past_role)
|
||||
}
|
||||
update_server(ctx, server, &roles_remove, &vec![]).await;
|
||||
update_server(ctx, server, &roles_remove, &[]).await;
|
||||
}
|
||||
|
||||
insert
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue