Skip to content

Commit aa1fadc

Browse files
committed
allow dead code
1 parent 31f712f commit aa1fadc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libm/src/math/support/int_traits/narrowing_div.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use crate::support::{DInt, HInt, Int, MinInt, u256};
66
/// This is the inverse of widening multiplication:
77
/// - for any `x` and nonzero `y`: `x.widen_mul(y).checked_narrowing_div_rem(y) == Some((x, 0))`,
88
/// - and for any `r in 0..y`: `x.carrying_mul(y, r).checked_narrowing_div_rem(y) == Some((x, r))`,
9+
#[allow(dead_code)]
910
pub trait NarrowingDiv: DInt + MinInt<Unsigned = Self> {
1011
/// Computes `(self / n, self % n))`
1112
///

libm/src/math/support/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pub use hex_float::hf16;
2828
pub use hex_float::hf128;
2929
#[allow(unused_imports)]
3030
pub use hex_float::{hf32, hf64};
31+
#[allow(unused_imports)]
3132
pub use int_traits::{CastFrom, CastInto, DInt, HInt, Int, MinInt, NarrowingDiv};
3233

3334
/// Hint to the compiler that the current path is cold.

0 commit comments

Comments
 (0)