Skip to content

Commit 4dc68f3

Browse files
committed
Revert "Auto merge of rust-lang#89709 - clemenswasser:apply_clippy_suggestions_2, r=petrochenkov"
The PR had some unforseen perf regressions that are not as easy to find. Revert the PR for now. This reverts commit 6ae8912, reversing changes made to 86d6d2b.
1 parent e0a249c commit 4dc68f3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/num/fmt.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ impl<'a> Part<'a> {
3131
} else {
3232
3
3333
}
34-
} else if v < 10_000 {
35-
4
3634
} else {
37-
5
35+
if v < 10_000 { 4 } else { 5 }
3836
}
3937
}
4038
Part::Copy(buf) => buf.len(),

0 commit comments

Comments
 (0)