style: fmt

This commit is contained in:
2026-02-15 11:52:12 +01:00
parent 504bfa9bfe
commit 2b1c2cd9d4
+1 -5
View File
@@ -62,9 +62,5 @@ pub fn reverse(t: f32) -> f32 {
/// assert!((ascending - descending).abs() < 0.001); /// assert!((ascending - descending).abs() < 0.001);
/// ``` /// ```
pub fn roundtrip(t: f32) -> f32 { pub fn roundtrip(t: f32) -> f32 {
if t < 0.5 { if t < 0.5 { t * 2.0 } else { (1.0 - t) * 2.0 }
t * 2.0
} else {
(1.0 - t) * 2.0
}
} }