mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04: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:
@@ -19,7 +19,7 @@
|
||||
#![cfg_attr(feature = "document-features", doc = document_features::document_features!())]
|
||||
//!
|
||||
|
||||
#![allow(clippy::float_cmp)]
|
||||
#![expect(clippy::float_cmp)]
|
||||
|
||||
use std::ops::{Add, Div, Mul, RangeInclusive, Sub};
|
||||
|
||||
|
||||
@@ -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