Skip to content

Commit

Permalink
Refact, remove avoidable clone (rustdesk#7040)
Browse files Browse the repository at this point in the history
Signed-off-by: fufesou <[email protected]>
  • Loading branch information
fufesou committed Feb 2, 2024
1 parent a2ba50c commit 0cf4711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ impl Connection {
Ok(displays) => {
// For compatibility with old versions, we need to send the displays to the peer.
// But the displays may be updated later, before creating the video capturer.
pi.displays = displays.clone();
pi.displays = displays;
pi.current_display = self.display_idx as _;
res.set_peer_info(pi);
sub_service = true;
Expand Down

0 comments on commit 0cf4711

Please sign in to comment.