Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
clippy
Richie McIlroydd24d329a8c2
diff --git a/crates/enc-ffmpeg/src/mux/segmented_audio.rs b/crates/enc-ffmpeg/src/mux/segmented_audio.rsindex 4ab6f083d..1f54d3e74 100644--- a/crates/enc-ffmpeg/src/mux/segmented_audio.rs+++ b/crates/enc-ffmpeg/src/mux/segmented_audio.rs@@ -21,23 +21,22 @@ fn atomic_write_json<T: Serialize>(path: &Path, data: &T) -> std::io::Result<()>if let Some(parent) = path.parent()&& let Ok(dir) = std::fs::File::open(parent)+ && let Err(e) = dir.sync_all(){- if let Err(e) = dir.sync_all() {- tracing::warn!(- "Directory fsync failed after rename for {}: {e}",- parent.display()- );- }+ tracing::warn!(+ "Directory fsync failed after rename for {}: {e}",+ parent.display()+ );}Ok(())}fn sync_file(path: &Path) {- if let Ok(file) = std::fs::File::open(path) {- if let Err(e) = file.sync_all() {- tracing::warn!("File fsync failed for {}: {e}", path.display());- }+ if let Ok(file) = std::fs::File::open(path)+ && let Err(e) = file.sync_all()+ {+ tracing::warn!("File fsync failed for {}: {e}", path.display());}}