diff --git a/src/transform2d.rs b/src/transform2d.rs index 771741b..5be3025 100644 --- a/src/transform2d.rs +++ b/src/transform2d.rs @@ -7,7 +7,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![cfg_attr(feature = "cargo-clippy", allow(just_underscores_and_digits))] +#![allow(clippy::just_underscores_and_digits)] use super::{Angle, UnknownUnit}; use crate::approxeq::ApproxEq; diff --git a/src/transform3d.rs b/src/transform3d.rs index 5506427..b39b7d3 100644 --- a/src/transform3d.rs +++ b/src/transform3d.rs @@ -7,7 +7,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![cfg_attr(feature = "cargo-clippy", allow(just_underscores_and_digits))] +#![allow(clippy::just_underscores_and_digits)] use super::{Angle, UnknownUnit}; use crate::approxeq::ApproxEq; @@ -209,7 +209,7 @@ impl Transform3D { /// ); /// ``` #[inline] - #[cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))] + #[allow(clippy::too_many_arguments)] #[rustfmt::skip] pub const fn new( m11: T, m12: T, m13: T, m14: T, diff --git a/src/trig.rs b/src/trig.rs index 907ffb0..5ff61ac 100644 --- a/src/trig.rs +++ b/src/trig.rs @@ -40,7 +40,7 @@ macro_rules! trig { fn fast_atan2(y: $ty, x: $ty) -> $ty { // This macro is used with f32 and f64 and clippy warns about the extra // precision with f32. - #![cfg_attr(feature = "cargo-clippy", allow(excessive_precision))] + #![allow(clippy::excessive_precision)] // See https://math.stackexchange.com/questions/1098487/atan2-faster-approximation#1105038 use core::$ty::consts;