bigint: remove an unused mut
This commit is contained in:
parent
7679cb86fb
commit
2a9750ada4
|
@ -1757,7 +1757,7 @@ fn twos_complement<'a, I>(digits: I)
|
||||||
where I: IntoIterator<Item = &'a mut u8>
|
where I: IntoIterator<Item = &'a mut u8>
|
||||||
{
|
{
|
||||||
let mut carry = true;
|
let mut carry = true;
|
||||||
for mut d in digits {
|
for d in digits {
|
||||||
*d = d.not();
|
*d = d.not();
|
||||||
if carry {
|
if carry {
|
||||||
*d = d.wrapping_add(1);
|
*d = d.wrapping_add(1);
|
||||||
|
|
Loading…
Reference in New Issue