feat: enable clippy pedantic and fix

This commit is contained in:
2026-02-15 12:34:36 +01:00
parent d330e83bfd
commit ca0c3ab892
4 changed files with 10 additions and 5 deletions
+4 -1
View File
@@ -23,6 +23,9 @@ pub fn back_in_out(t: f32) -> f32 {
if t < 0.5 {
((2.0 * t).powi(2) * ((C2 + 1.0) * 2.0 * t - C2)) / 2.0
} else {
((2.0 * t - 2.0).powi(2) * ((C2 + 1.0) * (t * 2.0 - 2.0) + C2) + 2.0) / 2.0
f32::midpoint(
(2.0 * t - 2.0).powi(2) * ((C2 + 1.0) * (t * 2.0 - 2.0) + C2),
2.0,
)
}
}