Skip to content

Commit

Permalink
Fix feature = "cargo-clippy" deprecation (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
rex4539 authored Mar 4, 2024
1 parent 535f6e1 commit 426c59a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/transform2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/transform3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -209,7 +209,7 @@ impl<T, Src, Dst> Transform3D<T, Src, Dst> {
/// );
/// ```
#[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,
Expand Down
2 changes: 1 addition & 1 deletion src/trig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 426c59a

Please sign in to comment.