mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Replace #[allow attributes with expect (#7796)
We do have `clippy::allow_attributes` turned on, but it doesn't seem to work properly
This commit is contained in:
@@ -23,7 +23,7 @@ macro_rules! impl_numeric_float {
|
||||
|
||||
#[inline(always)]
|
||||
fn to_f64(self) -> f64 {
|
||||
#[allow(trivial_numeric_casts, clippy::allow_attributes)]
|
||||
#[allow(clippy::allow_attributes, trivial_numeric_casts)]
|
||||
{
|
||||
self as f64
|
||||
}
|
||||
@@ -31,7 +31,7 @@ macro_rules! impl_numeric_float {
|
||||
|
||||
#[inline(always)]
|
||||
fn from_f64(num: f64) -> Self {
|
||||
#[allow(trivial_numeric_casts, clippy::allow_attributes)]
|
||||
#[allow(clippy::allow_attributes, trivial_numeric_casts)]
|
||||
{
|
||||
num as Self
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user