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
|
@ -115,7 +115,7 @@ pub mod link {
|
|||
}
|
||||
}
|
||||
|
||||
format!("Verification email sent to {}, it may take up to 15 min for it to arrive. If it takes longer check the Junk folder.", email)
|
||||
format!("Verification email sent to {email}, it may take up to 15 min for it to arrive. If it takes longer check the Junk folder.")
|
||||
}
|
||||
|
||||
pub async fn get_server_member_discord(db: &Pool<Sqlite>, user: &UserId) -> Option<Wolves> {
|
||||
|
@ -365,12 +365,12 @@ pub mod verify {
|
|||
"Discord username linked to Wolves".to_string()
|
||||
}
|
||||
Err(e) => {
|
||||
println!("{:?}", e);
|
||||
println!("{e:?}");
|
||||
"Failed to save, please try /link_wolves again".to_string()
|
||||
}
|
||||
};
|
||||
}
|
||||
Err(e) => println!("{:?}", e),
|
||||
Err(e) => println!("{e:?}"),
|
||||
}
|
||||
|
||||
"Failed to verify".to_string()
|
||||
|
@ -427,7 +427,7 @@ pub mod verify {
|
|||
}
|
||||
|
||||
if let Err(e) = member.add_roles(&ctx, &roles).await {
|
||||
println!("{:?}", e);
|
||||
println!("{e:?}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -443,7 +443,7 @@ pub mod verify {
|
|||
WHERE committee LIKE ?1
|
||||
"#,
|
||||
)
|
||||
.bind(format!("%{}%", wolves_id))
|
||||
.bind(format!("%{wolves_id}%"))
|
||||
.fetch_all(db)
|
||||
.await
|
||||
.unwrap_or_else(|e| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue