We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
trivial_numeric_casts
Uint::const_div_rem
1 parent 92d231a commit 60fb612Copy full SHA for 60fb612
src/uint/div.rs
@@ -48,6 +48,7 @@ impl<const LIMBS: usize> Uint<LIMBS> {
48
/// the value for is_some needs to be checked before using `q` and `r`.
49
///
50
/// This function is constant-time with respect to both `self` and `rhs`.
51
+ #[allow(trivial_numeric_casts)]
52
pub(crate) const fn const_div_rem(&self, rhs: &Self) -> (Self, Self, CtChoice) {
53
let mb = rhs.bits();
54
let mut rem = *self;
0 commit comments