From 59112ae7b16c4acb424d3cf33ffa9c64d14499c9 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 4 Sep 2024 15:19:23 -0700 Subject: [PATCH] Replace f64::to_string with ryu --- src/number.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/number.rs b/src/number.rs index 878a3dc..f8e0df7 100644 --- a/src/number.rs +++ b/src/number.rs @@ -692,7 +692,7 @@ impl From for Number { } #[cfg(feature = "arbitrary_precision")] { - f.to_string() + ryu::Buffer::new().format_finite(f).to_owned() } } ParserNumber::U64(u) => {