Skip to content

Commit

Permalink
Fix Mac clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsloan committed Dec 4, 2024
1 parent 825c630 commit afa01a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/livekit_client/src/remote_video_track_view.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
use crate::track::RemoteVideoTrack;
use anyhow::Result;
use futures::StreamExt as _;
use gpui::{
Empty, EventEmitter, IntoElement, Render, Styled, Task, View, ViewContext, VisualContext as _,
};
use gpui::{Empty, EventEmitter, IntoElement, Render, Task, View, ViewContext, VisualContext as _};

pub struct RemoteVideoTrackView {
track: RemoteVideoTrack,
Expand Down Expand Up @@ -79,6 +77,7 @@ impl Render for RemoteVideoTrackView {

#[cfg(not(target_os = "macos"))]
if let Some(latest_frame) = &self.latest_frame {
use gpui::Styled as _;
if let Some(current_rendered_frame) = self.current_rendered_frame.take() {
if let Some(frame) = self.previous_rendered_frame.take() {
// Only drop the frame if it's not also the current frame.
Expand Down

0 comments on commit afa01a2

Please sign in to comment.