1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Enable and fix some more clippy lints (#7426)

One can never have too many lints
This commit is contained in:
Emil Ernerfeldt
2025-08-08 09:57:53 +02:00
committed by GitHub
parent e8e99a0bb6
commit 3024c39eaf
41 changed files with 107 additions and 91 deletions

View File

@@ -134,7 +134,7 @@ impl Align {
if size == f32::INFINITY {
Rangef::new(f32::NEG_INFINITY, f32::INFINITY)
} else {
let left = (min + max) / 2.0 - size / 2.0;
let left = f32::midpoint(min, max) - size / 2.0;
Rangef::new(left, left + size)
}
}