Skip to content

Commit

Permalink
Replace f64::to_string with ryu
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 4, 2024
1 parent d96b1d9 commit 59112ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ impl From<ParserNumber> for Number {
}
#[cfg(feature = "arbitrary_precision")]
{
f.to_string()
ryu::Buffer::new().format_finite(f).to_owned()
}
}
ParserNumber::U64(u) => {
Expand Down

0 comments on commit 59112ae

Please sign in to comment.