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

Use Rust edition 2024 (#7280)

This commit is contained in:
Emil Ernerfeldt
2025-06-30 14:01:57 +02:00
committed by GitHub
parent 962c8e26a8
commit b2995dcb83
190 changed files with 427 additions and 388 deletions

View File

@@ -44,7 +44,7 @@ mod vec2b;
pub use self::{
align::{Align, Align2},
gui_rounding::{GuiRounding, GUI_ROUNDING},
gui_rounding::{GUI_ROUNDING, GuiRounding},
history::History,
numeric::*,
ordered_float::*,
@@ -182,11 +182,7 @@ where
);
let t = (x - *from.start()) / (*from.end() - *from.start());
// Ensure no numerical inaccuracies sneak in:
if T::ONE <= t {
*to.end()
} else {
lerp(to, t)
}
if T::ONE <= t { *to.end() } else { lerp(to, t) }
}
}