diff --git a/apps/tauri/src-tauri/src/server.rs b/apps/tauri/src-tauri/src/server.rs index 8849cf639..538a961fd 100644 --- a/apps/tauri/src-tauri/src/server.rs +++ b/apps/tauri/src-tauri/src/server.rs @@ -23,7 +23,10 @@ pub struct ServerState { } /// Find library folder by UUID (reads library.json files to match ID) -async fn find_library_folder(data_dir: &std::path::Path, library_id: &str) -> Result { +async fn find_library_folder( + data_dir: &std::path::Path, + library_id: &str, +) -> Result { let libraries_dir = data_dir.join("libraries"); // Read all .sdlibrary folders diff --git a/crates/crypto/src/ct.rs b/crates/crypto/src/ct.rs index 22f41ccbe..8bef14f44 100644 --- a/crates/crypto/src/ct.rs +++ b/crates/crypto/src/ct.rs @@ -175,7 +175,9 @@ impl ConstantTimeEqNull for [u8] { #[inline] fn ct_eq_null(&self) -> Choice { let mut x = 1u8; - for b in self { b.cmovne(&0, 0u8, &mut x); } + for b in self { + b.cmovne(&0, 0u8, &mut x); + } Choice::from(x) } } diff --git a/crates/ffmpeg/src/frame_decoder.rs b/crates/ffmpeg/src/frame_decoder.rs index 735f9c5c4..4959342f6 100644 --- a/crates/ffmpeg/src/frame_decoder.rs +++ b/crates/ffmpeg/src/frame_decoder.rs @@ -92,7 +92,8 @@ impl FrameDecoder { }) } - #[must_use] pub const fn use_embedded(&self) -> bool { + #[must_use] + pub const fn use_embedded(&self) -> bool { self.embedded } @@ -224,7 +225,8 @@ impl FrameDecoder { }) } - #[must_use] pub fn get_duration_secs(&self) -> Option { + #[must_use] + pub fn get_duration_secs(&self) -> Option { self.format_ctx.duration().map(|duration| { let av_time_base = i64::from(AV_TIME_BASE); #[allow(clippy::cast_precision_loss)] diff --git a/crates/fs-watcher/src/config.rs b/crates/fs-watcher/src/config.rs index ae3d629d6..d9a21938a 100644 --- a/crates/fs-watcher/src/config.rs +++ b/crates/fs-watcher/src/config.rs @@ -115,15 +115,16 @@ impl EventFilters { || path_str.contains(".temp") || path_str.ends_with("~") || path_str.ends_with(".swp")) - { - return true; - } + { + return true; + } // Check system files if self.skip_system_files - && (path_str.contains(".DS_Store") || path_str.contains("Thumbs.db")) { - return true; - } + && (path_str.contains(".DS_Store") || path_str.contains("Thumbs.db")) + { + return true; + } // Check hidden files if self.skip_hidden { diff --git a/crates/log-analyzer/src/sequence.rs b/crates/log-analyzer/src/sequence.rs index a94e28ce4..6edcea61c 100644 --- a/crates/log-analyzer/src/sequence.rs +++ b/crates/log-analyzer/src/sequence.rs @@ -49,11 +49,11 @@ pub fn detect_sequences(groups: &[LogGroup]) -> Vec { if !used_indices[current] && template_ids[current..current + window_size] == *pattern { - repetitions += 1; - // Mark as used - for item in used_indices.iter_mut().skip(current).take(window_size) { - *item = true; - } + repetitions += 1; + // Mark as used + for item in used_indices.iter_mut().skip(current).take(window_size) { + *item = true; + } current += window_size; } else { break; diff --git a/xtask/src/system.rs b/xtask/src/system.rs index eb7cbb4ef..7d42f5a95 100644 --- a/xtask/src/system.rs +++ b/xtask/src/system.rs @@ -129,9 +129,8 @@ pub fn get_best_linker() -> Option { return Some("lld".to_string()); } } - } else if cfg!(target_os = "windows") - && has_linker("lld-link") { - return Some("lld-link".to_string()); - } + } else if cfg!(target_os = "windows") && has_linker("lld-link") { + return Some("lld-link".to_string()); + } None }