We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6368fca commit 3fe3540Copy full SHA for 3fe3540
src/lib.rs
@@ -704,9 +704,9 @@ pub fn extended_gcd<T: Integer + NumRef>(a: T, b: T) -> GcdResult<T>
704
705
while r != T::zero() {
706
let quotient = &old_r / &r;
707
- old_r = old_r - "ient * &r; std::mem::swap(&mut old_r, &mut r);
708
- old_s = old_s - "ient * &s; std::mem::swap(&mut old_s, &mut s);
709
- old_t = old_t - quotient * &t; std::mem::swap(&mut old_t, &mut t);
+ old_r = old_r - "ient * &r; mem::swap(&mut old_r, &mut r);
+ old_s = old_s - "ient * &s; mem::swap(&mut old_s, &mut s);
+ old_t = old_t - quotient * &t; mem::swap(&mut old_t, &mut t);
710
}
711
712
let _quotients = (t, s); // == (a, b) / gcd
0 commit comments