style: cargo fmt --workspace (whitespace/wrapping only, no semantic change)

Whole-workspace rustfmt pass picked up while iterating on Mamba GPU
backward work. Verified formatting-only via diff sampling; no logic
changed.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
osobh
2026-08-10 07:09:36 -07:00
co-authored by Claude Sonnet 5
parent ad6405663f
commit 4aaa36a57a
305 changed files with 25537 additions and 18337 deletions
+9 -3
View File
@@ -87,7 +87,9 @@ impl ProsodyAnnotation {
/// Check if annotation has a specific marker type
#[must_use]
pub fn has_marker(&self, marker_type: &ProsodyMarker) -> bool {
self.markers.iter().any(|m| std::mem::discriminant(m) == std::mem::discriminant(marker_type))
self.markers
.iter()
.any(|m| std::mem::discriminant(m) == std::mem::discriminant(marker_type))
}
}
@@ -379,7 +381,9 @@ mod tests {
#[test]
fn test_multiple_sentences() {
let prosody = Prosody::default();
let result = prosody.predict("Hello world. How are you? I am fine.").unwrap();
let result = prosody
.predict("Hello world. How are you? I am fine.")
.unwrap();
assert!(!result.is_empty());
// Multiple sentences should be detected
@@ -406,7 +410,9 @@ mod tests {
let short_factor = prosody.estimate_duration_factor("Hi!");
let normal_factor = prosody.estimate_duration_factor("This is a normal sentence");
let long_factor = prosody.estimate_duration_factor("This is a very long sentence with many words that should be spoken slowly");
let long_factor = prosody.estimate_duration_factor(
"This is a very long sentence with many words that should be spoken slowly",
);
assert!(short_factor >= normal_factor);
assert!(normal_factor >= long_factor);