Clear clippy warnings

main
Elnu 11 months ago
parent 4acff7051d
commit 1dfa68452b

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

Loading…
Cancel
Save