bigint: remove an unused mut

This commit is contained in:
Josh Stone 2017-09-21 17:28:37 -07:00
parent 7679cb86fb
commit 2a9750ada4
1 changed files with 1 additions and 1 deletions

View File

@ -1757,7 +1757,7 @@ fn twos_complement<'a, I>(digits: I)
where I: IntoIterator<Item = &'a mut u8>
{
let mut carry = true;
for mut d in digits {
for d in digits {
*d = d.not();
if carry {
*d = d.wrapping_add(1);