mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Enable and fix a bunch more lints
This commit is contained in:
@@ -23,12 +23,18 @@ macro_rules! impl_numeric_float {
|
||||
|
||||
#[inline(always)]
|
||||
fn to_f64(self) -> f64 {
|
||||
self as f64
|
||||
#[allow(trivial_numeric_casts)]
|
||||
{
|
||||
self as f64
|
||||
}
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
fn from_f64(num: f64) -> Self {
|
||||
num as Self
|
||||
#[allow(trivial_numeric_casts)]
|
||||
{
|
||||
num as Self
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user