-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit 040e2f8
Auto merge of #143540 - yotamofek:pr/library/simplify-num-fmt, r=tgross35
Simplify num formatting helpers
Noticed `ilog10` was being open-coded when looking at this diff: https://github.com/rust-lang/rust/pull/143423/files/85d6768f4c437a0f3799234df20535ff65ee17c2..76d9775912ef3a7ee145053a5119538bf229d6e5#diff-6be9b44b52d946ccac652ddb7c98146a01b22ea0fc5737bc10db245a24796a45
That, and two other small cleanups 😁
(should probably go through perf just to make sure it doesn't regress formatting)1 file changed
+3
-22
lines changedLines changed: 3 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 | - | ||
26 | - | ||
27 | - | ||
28 | - | ||
29 | - | ||
30 | - | ||
31 | - | ||
32 | - | ||
33 | - | ||
34 | - | ||
35 | - | ||
36 | - | ||
37 | - | ||
25 | + | ||
38 | 26 |
| |
39 | 27 |
| |
40 | 28 |
| |
| |||
82 | 70 |
| |
83 | 71 |
| |
84 | 72 |
| |
85 | - | ||
86 | - | ||
87 | - | ||
88 | - | ||
89 | - | ||
73 | + | ||
90 | 74 |
| |
91 | 75 |
| |
92 | 76 |
| |
93 | 77 |
| |
94 | 78 |
| |
95 | 79 |
| |
96 | - | ||
97 | - | ||
98 | - | ||
99 | - | ||
80 | + | ||
100 | 81 |
| |
101 | 82 |
| |
102 | 83 |
| |
|
0 commit comments