Skip to content

Commit 980e578

Browse files
committed
Remove map_err
1 parent de58b7c commit 980e578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ impl FormatSpec {
580580
| Some(FormatType::ExponentUpper)
581581
| Some(FormatType::ExponentLower)
582582
| Some(FormatType::Percentage) => match num.to_f64() {
583-
Some(float) => return self.format_float(float).map_err(|msg| msg.to_owned()),
583+
Some(float) => return self.format_float(float),
584584
_ => Err("Unable to convert int to float".to_owned()),
585585
},
586586
None => self.format_int_radix(magnitude, 10),

0 commit comments

Comments
 (0)