Skip to content

Commit e0e5bb4

Browse files
Amjad50Amanieu
authored andcommitted
Fix clippy warnings in math
The solution is not pretty, but not sure why we still get clippy warning from one of the files in `libm` even though we use `allow(clippy::all)`
1 parent 3375e3a commit e0e5bb4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ mod macros;
4545
pub mod float;
4646
pub mod int;
4747

48+
// For some reason, we still get clippy error `clippy::deprecated_cfg_attr` even though, we have
49+
// used `allow(clippy::all)` in the file. So, we are disabling the clippy check for this file.
50+
#[cfg(not(clippy))]
4851
pub mod math;
4952
pub mod mem;
5053

src/math.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#[allow(dead_code)]
2+
#[allow(unused_imports)]
3+
#[allow(clippy::all)]
24
#[path = "../libm/src/math/mod.rs"]
35
mod libm;
46

0 commit comments

Comments
 (0)