Skip to content

Commit

Permalink
Allow clippy::redundant_closure_call false positive.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid authored and mbrubeck committed Oct 10, 2023
1 parent a5390f8 commit 99f7285
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1825,6 +1825,7 @@ impl<T: Float> NumCast for NotNan<T> {
macro_rules! impl_float_const_method {
($wrapper:expr, $method:ident) => {
#[allow(non_snake_case)]
#[allow(clippy::redundant_closure_call)]
fn $method() -> Self {
$wrapper(T::$method())
}
Expand Down

0 comments on commit 99f7285

Please sign in to comment.