Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

style: cargo fmt — multiline assert_eq in audio+engine tests

Louis Beaumont07128caf9104
diff --git a/crates/screenpipe-audio/src/transcription/whisper/detect_language.rs b/crates/screenpipe-audio/src/transcription/whisper/detect_language.rs
index cc5e4bd2d..220f0be6d 100644
--- a/crates/screenpipe-audio/src/transcription/whisper/detect_language.rs
+++ b/crates/screenpipe-audio/src/transcription/whisper/detect_language.rs
@@ -65,7 +65,10 @@ mod tests {
// even if the probability vector says otherwise.
let mut probs = zeroed_probs();
set(&mut probs, "en", 1.0);
- assert_eq!(detect_language(probs, vec![Language::Portuguese]), Some("pt"));
+ assert_eq!(
+ detect_language(probs, vec![Language::Portuguese]),
+ Some("pt")
+ );
}
#[test]
diff --git a/crates/screenpipe-engine/src/recording_config.rs b/crates/screenpipe-engine/src/recording_config.rs
index f96746e3e..45e1ee7e5 100644
--- a/crates/screenpipe-engine/src/recording_config.rs
+++ b/crates/screenpipe-engine/src/recording_config.rs
@@ -542,7 +542,10 @@ mod tests {
fn multiple_languages_mean_multilingual() {
// Deepgram streaming has no per-stream allow-list, so 2+ picks fall
// back to multilingual rather than arbitrarily forcing the first.
- assert_eq!(single_language_code(&langs(&["spanish", "portuguese"])), None);
+ assert_eq!(
+ single_language_code(&langs(&["spanish", "portuguese"])),
+ None
+ );
}
#[test]