Skip to content

Commit 30cf231

Browse files
committed
clippy
1 parent 1aac5a6 commit 30cf231

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/recording/src/output_pipeline/win_segmented_camera.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -592,10 +592,10 @@ impl WindowsSegmentedCameraMuxer {
592592
}
593593
}
594594

595-
if let Ok(mut output_guard) = output_clone.lock() {
596-
if let Err(e) = encoder.flush(&mut output_guard) {
597-
warn!("Failed to flush software encoder: {e}");
598-
}
595+
if let Ok(mut output_guard) = output_clone.lock()
596+
&& let Err(e) = encoder.flush(&mut output_guard)
597+
{
598+
warn!("Failed to flush software encoder: {e}");
599599
}
600600

601601
Ok(())

0 commit comments

Comments
 (0)