From 0a21a4ccf981b14ab754739faa7231c1befb8ed8 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 24 Mar 2023 01:05:11 +0100 Subject: [PATCH] Allow `clippy::single_match` in `interaction_create` --- src/discord/handler.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/discord/handler.rs b/src/discord/handler.rs index ccdb718..3b0262a 100644 --- a/src/discord/handler.rs +++ b/src/discord/handler.rs @@ -360,6 +360,7 @@ impl serenity::client::EventHandler for EventHandler { log::info!("{} is ready!", &ready.user.name); } + #[allow(clippy::single_match)] async fn interaction_create(&self, ctx: Context, interaction: Interaction) { match interaction { Interaction::ApplicationCommand(command) => {