Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
clippy
Richie McIlroy9c33184123d8
diff --git a/crates/recording/src/output_pipeline/win_segmented.rs b/crates/recording/src/output_pipeline/win_segmented.rsindex c0e570b55..bdb839304 100644--- a/crates/recording/src/output_pipeline/win_segmented.rs+++ b/crates/recording/src/output_pipeline/win_segmented.rs@@ -207,10 +207,10 @@ impl Muxer for WindowsSegmentedMuxer {}fn stop(&mut self) {- if let Some(state) = &self.current_state {- if let Err(e) = state.video_tx.send(None) {- trace!("Screen encoder channel already closed during stop: {e}");- }+ if let Some(state) = &self.current_state+ && let Err(e) = state.video_tx.send(None)+ {+ trace!("Screen encoder channel already closed during stop: {e}");}}diff --git a/crates/recording/src/output_pipeline/win_segmented_camera.rs b/crates/recording/src/output_pipeline/win_segmented_camera.rsindex fde47784b..67878cf3a 100644--- a/crates/recording/src/output_pipeline/win_segmented_camera.rs+++ b/crates/recording/src/output_pipeline/win_segmented_camera.rs@@ -201,10 +201,10 @@ impl Muxer for WindowsSegmentedCameraMuxer {}fn stop(&mut self) {- if let Some(state) = &self.current_state {- if let Err(e) = state.video_tx.send(None) {- trace!("Camera encoder channel already closed during stop: {e}");- }+ if let Some(state) = &self.current_state+ && let Err(e) = state.video_tx.send(None)+ {+ trace!("Camera encoder channel already closed during stop: {e}");}}