From 426c59a3465c2eff9570b529b1d2961fcaaa3f50 Mon Sep 17 00:00:00 2001 From: Dimitris Apostolou Date: Mon, 4 Mar 2024 17:33:20 +0200 Subject: [PATCH] Fix feature = "cargo-clippy" deprecation (#516) --- src/transform2d.rs | 2 +- src/transform3d.rs | 4 ++-- src/trig.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/transform2d.rs b/src/transform2d.rs index 771741b4..5be3025e 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 55064271..b39b7d3c 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 907ffb0b..5ff61ac7 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;