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 edc4de2 commit 3838610Copy full SHA for 3838610
vm/src/format.rs
@@ -400,13 +400,11 @@ impl FormatSpec {
400
magnitude if magnitude.is_infinite() => Ok("inf%".to_owned()),
401
_ => Ok(format!("{:.*}%", precision, magnitude * 100.0)),
402
},
403
- None => {
404
- match magnitude {
405
- magnitude if magnitude.is_nan() => Ok("nan".to_owned()),
406
- magnitude if magnitude.is_infinite() => Ok("inf".to_owned()),
407
- _ => Ok(float_ops::to_string(magnitude)),
408
- }
409
+ None => match magnitude {
+ magnitude if magnitude.is_nan() => Ok("nan".to_owned()),
+ magnitude if magnitude.is_infinite() => Ok("inf".to_owned()),
+ _ => Ok(float_ops::to_string(magnitude)),
+ },
410
};
411
412
if raw_magnitude_string_result.is_err() {
0 commit comments