Clear clippy warnings

main
Elnu 2 years ago
parent 4acff7051d
commit 1dfa68452b

@ -190,10 +190,7 @@ pub async fn send(ctx: Context<'_>, message: &str, ping: bool, pin: bool) -> Res
if pin {
// No need to do anything on error,
// it just means we don't have pin permissions
match sent_message.pin(&ctx.http).await {
Ok(_) => (),
Err(_) => (),
};
let _ = sent_message.pin(&ctx.http).await;
}
// announcements_count += 1;
}
@ -214,8 +211,8 @@ pub fn random_from_string(string: &str) -> char {
pub fn get_so_diagram(kanji: char) -> String {
format!(
"https://raw.githubusercontent.com/mistval/kanji_images/master/gifs/{}.gif",
format!("{:x}", kanji as i32)
"https://raw.githubusercontent.com/mistval/kanji_images/master/gifs/{:x}.gif",
kanji as i32
)
}

Loading…
Cancel
Save