Skip to content

Commit

Permalink
Chore: Fix clippy warnings (useless clones).
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMcFelix committed May 11, 2021
1 parent eb22443 commit 21b8383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
}
},
Expand Down Expand Up @@ -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),
);
}
}
Expand Down

0 comments on commit 21b8383

Please sign in to comment.