From 2b1c2cd9d4895df09c30f242c62f2093daa8931f Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Sun, 15 Feb 2026 11:52:12 +0100 Subject: [PATCH] style: fmt --- src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9d73aa7..f3239c2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -62,9 +62,5 @@ pub fn reverse(t: f32) -> f32 { /// assert!((ascending - descending).abs() < 0.001); /// ``` pub fn roundtrip(t: f32) -> f32 { - if t < 0.5 { - t * 2.0 - } else { - (1.0 - t) * 2.0 - } + if t < 0.5 { t * 2.0 } else { (1.0 - t) * 2.0 } }