Skip to content

Commit

Permalink
Allow (existing?) clippy::redundant_closure_call false positive.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Sep 2, 2023
1 parent e883495 commit 5f8c5f1
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 @@ -1806,6 +1806,7 @@ impl<T: FloatCore> 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 5f8c5f1

Please sign in to comment.