fix: removed warnings

This commit is contained in:
moonleay 2024-04-04 10:07:11 +02:00
parent b5888ec441
commit 2b4e21736c
Signed by: moonleay
GPG key ID: 82667543CCD715FB

View file

@ -1,6 +1,5 @@
use crate::music::music_queue; use crate::music::music_queue;
use crate::util::embed::Embed; use crate::util::embed::Embed;
use futures::{FutureExt, TryFutureExt};
use serenity::all::{CommandInteraction, Context}; use serenity::all::{CommandInteraction, Context};
use serenity::builder::{CreateCommand, CreateEmbed}; use serenity::builder::{CreateCommand, CreateEmbed};
@ -45,7 +44,7 @@ pub async fn run(ctx: &Context, command: &CommandInteraction) -> CreateEmbed {
.expect("Cannot get Songbird") .expect("Cannot get Songbird")
.clone(); .clone();
let handler = match manager.get(*guild_id) { let _ = match manager.get(*guild_id) {
Some(handler) => handler, Some(handler) => handler,
None => { None => {
return Embed::create_error_respose( return Embed::create_error_respose(