Skip to content

Commit e6b64bd

Browse files
committed
Update for new warn-by-default clippy lints
Remove an import that is actually unused, and silence the approximate constant lint because it isn't always correct here.
1 parent 71f73a5 commit e6b64bd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libm/src/math/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::approx_constant)] // many false positives
2+
13
macro_rules! force_eval {
24
($e:expr) => {
35
unsafe { ::core::ptr::read_volatile(&$e) }

libm/src/math/support/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ mod int_traits;
1111

1212
#[allow(unused_imports)]
1313
pub use big::{i256, u256};
14-
#[allow(unused_imports)]
14+
// Clippy seems to have a false positive
15+
#[allow(unused_imports, clippy::single_component_path_imports)]
1516
pub(crate) use cfg_if;
1617
pub use env::{FpResult, Round, Status};
1718
#[allow(unused_imports)]

0 commit comments

Comments
 (0)