Chore: Fix clippy warnings (useless clones).

This commit is contained in:
Kyle Simpson
2021-05-11 11:48:18 +01:00
parent 94c57f4ab5
commit 91be0df5d5

View File

@@ -380,7 +380,7 @@ impl Songbird {
let mut handler = call.lock().await; let mut handler = call.lock().await;
handler.update_state( handler.update_state(
v.0.session_id.clone(), 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; let mut handler = call.lock().await;
handler.update_state( handler.update_state(
voice_state.session_id.clone(), voice_state.session_id.clone(),
voice_state.channel_id.clone().map(Into::into), voice_state.channel_id.map(Into::into),
); );
} }
} }