Refact, remove avoidable clone (#7040)

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2024-02-03 00:09:39 +08:00 committed by GitHub
parent a2ba50c4ff
commit 0cf4711515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;