We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de58b7c commit 980e578Copy full SHA for 980e578
common/src/format.rs
@@ -580,7 +580,7 @@ impl FormatSpec {
580
| Some(FormatType::ExponentUpper)
581
| Some(FormatType::ExponentLower)
582
| Some(FormatType::Percentage) => match num.to_f64() {
583
- Some(float) => return self.format_float(float).map_err(|msg| msg.to_owned()),
+ Some(float) => return self.format_float(float),
584
_ => Err("Unable to convert int to float".to_owned()),
585
},
586
None => self.format_int_radix(magnitude, 10),
0 commit comments