We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bba7294 commit a2d1cacCopy full SHA for a2d1cac
src/lib.rs
@@ -1033,9 +1033,9 @@ pub fn extended_gcd<T: Integer + NumRef>(a: T, b: T) -> GcdResult<T>
1033
1034
while r != T::zero() {
1035
let quotient = &old_r / &r;
1036
- old_r = old_r - "ient * &r; std::mem::swap(&mut old_r, &mut r);
1037
- old_s = old_s - "ient * &s; std::mem::swap(&mut old_s, &mut s);
1038
- 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);
1039
}
1040
1041
let _quotients = (t, s); // == (a, b) / gcd
0 commit comments