Skip to content

Commit a12d60d

Browse files
committed
Fix clippy warning
1 parent 32dd6c9 commit a12d60d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/num/biguint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ impl BigUint {
658658

659659
let mut i = num.len();
660660
while i > 0 {
661-
let start = if i >= 3 { i - 3 } else { 0 };
661+
let start = i.saturating_sub(3);
662662
chunks.push(&num[start..i]);
663663
i = start;
664664
}

0 commit comments

Comments
 (0)