Replace f64::to_string with ryu

This commit is contained in:
David Tolnay 2024-09-04 15:19:23 -07:00
parent d96b1d9b64
commit 59112ae7b1
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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) => {