Refact, remove avoidable clone (#7040)
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
		
							parent
							
								
									a2ba50c4ff
								
							
						
					
					
						commit
						0cf4711515
					
				| @ -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; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user