forked from Skynet/discord-bot
clippy: changes from nightly clippy
all of this is embeding teh var into teh format macro
This commit is contained in:
parent
9d409e3692
commit
d0726169ee
17 changed files with 47 additions and 47 deletions
|
@ -71,7 +71,7 @@ pub mod normal {
|
|||
}
|
||||
|
||||
if let Err(e) = member.add_roles(ctx, &roles).await {
|
||||
println!("{:?}", e);
|
||||
println!("{e:?}");
|
||||
}
|
||||
} else {
|
||||
// old and never
|
||||
|
@ -86,13 +86,13 @@ pub mod normal {
|
|||
roles_set.current_rem += 1;
|
||||
// if theya re not a current member and have the role then remove it
|
||||
if let Err(e) = member.remove_role(ctx, role_current).await {
|
||||
println!("{:?}", e);
|
||||
println!("{e:?}");
|
||||
}
|
||||
}
|
||||
}
|
||||
for role in remove_roles.iter().flatten() {
|
||||
if let Err(e) = member.remove_role(ctx, role).await {
|
||||
println!("{:?}", e);
|
||||
println!("{e:?}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ pub mod normal {
|
|||
Ok(_) => {}
|
||||
Err(e) => {
|
||||
println!("Failure to insert into {}", server.get());
|
||||
println!("{:?}", e);
|
||||
println!("{e:?}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -471,8 +471,8 @@ pub mod committee {
|
|||
{
|
||||
Ok(_) => {}
|
||||
Err(e) => {
|
||||
println!("Failure to insert into Wolves {:?}", role);
|
||||
println!("{:?}", e);
|
||||
println!("Failure to insert into Wolves {role:?}");
|
||||
println!("{e:?}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -489,7 +489,7 @@ pub mod committee {
|
|||
.await
|
||||
.unwrap_or_else(|e| {
|
||||
println!("Failure to get Roles from committee_roles");
|
||||
println!("{:?}", e);
|
||||
println!("{e:?}");
|
||||
vec![]
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue