We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27206fe commit 93f19eaCopy full SHA for 93f19ea
common/src/format.rs
@@ -436,7 +436,7 @@ impl FormatSpec {
436
let sep = char::from(fg);
437
let inter = self.get_separator_interval().try_into().unwrap();
438
let magnitude_len = magnitude_str.len();
439
- let disp_digit_cnt = if let Some('0') = self.fill.and_then(|p| p.to_char()) {
+ let disp_digit_cnt = if self.fill == Some('0'.into()) {
440
let width = self.width.unwrap_or(magnitude_len) as i32 - prefix.len() as i32;
441
cmp::max(width, magnitude_len as i32)
442
} else {
0 commit comments