1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

Fix a few nightly clippy lints (#8388)

This commit is contained in:
Emil Ernerfeldt
2026-08-04 12:40:56 -07:00
committed by GitHub
parent 5347b0a4ac
commit 90e03028f7
6 changed files with 17 additions and 13 deletions

View File

@@ -7,6 +7,8 @@
//! Derived from <https://github.com/warrenm/AHEasing/blob/master/AHEasing/easing.c>.
use std::f32::consts::PI;
use crate::fast_midpoint;
#[inline]
fn powf(base: f32, exp: f32) -> f32 {
base.powf(exp)
@@ -116,7 +118,7 @@ pub fn circular_in_out(t: f32) -> f32 {
if t < 0.5 {
0.5 * (1. - (1. - 4. * t * t).sqrt())
} else {
0.5 * ((-(2. * t - 3.) * (2. * t - 1.)).sqrt() + 1.)
fast_midpoint((-(2. * t - 3.) * (2. * t - 1.)).sqrt(), 1.)
}
}