mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Add emath::OrderedFloat (moved from epaint::util::OrderedFloat) (#4389)
It makes much more sense in `emath`
This commit is contained in:
@@ -48,7 +48,7 @@ impl std::hash::Hash for Stroke {
|
||||
#[inline(always)]
|
||||
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
|
||||
let Self { width, color } = *self;
|
||||
crate::f32_hash(state, width);
|
||||
emath::OrderedFloat(width).hash(state);
|
||||
color.hash(state);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user