From 1dfa68452b063b7aa79119091e1b7209ac39d219 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sat, 10 Jun 2023 13:30:34 -0700 Subject: [PATCH] Clear clippy warnings --- src/utils.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index 9961f32..bcae7f5 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -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 ) }