Skip to content

Commit 2ffc25c

Browse files
committed
Auto merge of rust-lang#89709 - clemenswasser:apply_clippy_suggestions_2, r=petrochenkov
Apply clippy suggestions for rustc and core
2 parents b6585ec + 5d3d3c3 commit 2ffc25c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/num/fmt.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ impl<'a> Part<'a> {
3131
} else {
3232
3
3333
}
34+
} else if v < 10_000 {
35+
4
3436
} else {
35-
if v < 10_000 { 4 } else { 5 }
37+
5
3638
}
3739
}
3840
Part::Copy(buf) => buf.len(),

0 commit comments

Comments
 (0)