1
0
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:
Emil Ernerfeldt
2022-07-11 23:08:48 +02:00
parent e76c919c7e
commit 898f4804b7
21 changed files with 65 additions and 48 deletions

View File

@@ -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
}
}
}
};