From dc1311bb15dd4311c06060a1efbd2fb3f88ed040 Mon Sep 17 00:00:00 2001 From: shibedrill <53824200+shibedrill@users.noreply.github.com> Date: Tue, 16 Apr 2024 22:31:03 -0400 Subject: [PATCH] cargo clippy --- src/command/fun.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/command/fun.rs b/src/command/fun.rs index d9502b0..885a1a6 100644 --- a/src/command/fun.rs +++ b/src/command/fun.rs @@ -7,15 +7,18 @@ use crate::Error; /// MAKE HER BLEAT #[poise::command(slash_command)] pub async fn bleat(ctx: Context<'_>) -> Result<(), Error> { + #[allow(unused_variables)] let sounds: Vec<&str> = [ "rah", "grr", "bah", "bleat", "yippee", "woohoo", "huh", "wha", "buh", "whuh", "oh", "yeag", "yeab", "yeas", "mweee", "mweh", "bwah", ] .to_vec(); - let faces: Vec<&str> = vec!["xp", "x3", ":3", ":3c", ";3", ";3c", "=p"].to_vec(); + #[allow(unused_variables)] + let faces: Vec<&str> = vec!["xp", "x3", ":3", ":3c", ";3", ";3c", "=p"]; - let exclamation: Vec<&str> = vec!["!", "1", "?", "-", ",", "."].to_vec(); + #[allow(unused_variables)] + let exclamation: Vec<&str> = vec!["!", "1", "?", "-", ",", "."]; fn modify_sound(input: &str) -> String { // Create an RNG