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 committed Sep 2, 2023
1 parent 8ce33ec commit 9d1cb56
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 @@ -1807,6 +1807,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 9d1cb56

Please sign in to comment.