From f4716bc4005da110727ca1907f0cafd423d016ae Mon Sep 17 00:00:00 2001 From: J / Jacob Babich Date: Wed, 4 Dec 2024 14:24:24 -0500 Subject: [PATCH] Replace `fast-float` with `fast-float2` --- Cargo.toml | 2 +- crates/builder/Cargo.toml | 2 +- crates/builder/src/input/mod.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a81cec3..e4cf0c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ dashmap = "5.5.0" delegate = "0.8.0" directories = "4.0" env_logger = "0.9.3" -fast-float = "0.2.0" +fast-float2 = "0.2.3" float-ord = "0.3.2" futures = "0.3.28" fxhash = "0.2.1" diff --git a/crates/builder/Cargo.toml b/crates/builder/Cargo.toml index 45eb97e..a44f44a 100644 --- a/crates/builder/Cargo.toml +++ b/crates/builder/Cargo.toml @@ -15,7 +15,7 @@ atomic.workspace = true byte-slice-cast.workspace = true dashmap.workspace = true delegate.workspace = true -fast-float.workspace = true +fast-float2.workspace = true fxhash.workspace = true gdl = { workspace = true, optional = true } linereader.workspace = true diff --git a/crates/builder/src/input/mod.rs b/crates/builder/src/input/mod.rs index afef28e..eebed7d 100644 --- a/crates/builder/src/input/mod.rs +++ b/crates/builder/src/input/mod.rs @@ -102,6 +102,6 @@ impl_parse_value!( impl_parse_value!(parse_float, f32, f64); -fn parse_float(bytes: &[u8]) -> (T, usize) { - fast_float::parse_partial(bytes).unwrap() +fn parse_float(bytes: &[u8]) -> (T, usize) { + fast_float2::parse_partial(bytes).unwrap() }