Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove not matched comments
  • Loading branch information
ChJR committed Oct 26, 2020
commit edc4de20e49917bed12715828be82c06ea5eae7a
2 changes: 0 additions & 2 deletions vm/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,6 @@ impl FormatSpec {
match magnitude {
magnitude if magnitude.is_nan() => Ok("nan".to_owned()),
magnitude if magnitude.is_infinite() => Ok("inf".to_owned()),
// Using the Debug format here to prevent the automatic conversion of floats
// ending in .0 to their integer representation (e.g., 1.0 -> 1)
_ => Ok(float_ops::to_string(magnitude)),
}
}
Expand Down