Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

Refact, remove avoidable clone (#7040)

fufesou0cf471151507
diff --git a/src/server/connection.rs b/src/server/connection.rs
index c4156c545..e05559f9c 100644
--- a/src/server/connection.rs
+++ b/src/server/connection.rs
@@ -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;