From 91be0df5d5b15bc0d3119cf909c7969eef40d398 Mon Sep 17 00:00:00 2001 From: Kyle Simpson Date: Tue, 11 May 2021 11:48:18 +0100 Subject: [PATCH] Chore: Fix clippy warnings (useless clones). --- src/manager.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manager.rs b/src/manager.rs index c9ac72d..5a3bbdf 100644 --- a/src/manager.rs +++ b/src/manager.rs @@ -380,7 +380,7 @@ impl Songbird { let mut handler = call.lock().await; handler.update_state( v.0.session_id.clone(), - v.0.channel_id.clone().map(Into::into), + v.0.channel_id.map(Into::into), ); } }, @@ -422,7 +422,7 @@ impl VoiceGatewayManager for Songbird { let mut handler = call.lock().await; handler.update_state( voice_state.session_id.clone(), - voice_state.channel_id.clone().map(Into::into), + voice_state.channel_id.map(Into::into), ); } }