chore: Fix clippy::needless_borrow up to an editor

This commit is contained in:
Piotr Osiewicz
2024-01-21 15:03:24 +01:00
parent c3102feeeb
commit 6c82380232
29 changed files with 86 additions and 88 deletions
+1 -1
View File
@@ -1432,7 +1432,7 @@ impl Room {
let display = displays
.first()
.ok_or_else(|| anyhow!("no display found"))?;
let track = LocalVideoTrack::screen_share_for_display(&display);
let track = LocalVideoTrack::screen_share_for_display(display);
this.upgrade()
.ok_or_else(|| anyhow!("room was dropped"))?
.update(&mut cx, |this, _| {