Skip to content

Commit

Permalink
Merge pull request #131 from babichjacob/resolve-fast-float-rustsec
Browse files Browse the repository at this point in the history
Replace `fast-float` with `fast-float2`
  • Loading branch information
knutwalker authored Dec 19, 2024
2 parents 39ed2e8 + f4716bc commit 4a4de1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion crates/builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions crates/builder/src/input/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ impl_parse_value!(

impl_parse_value!(parse_float, f32, f64);

fn parse_float<T: fast_float::FastFloat>(bytes: &[u8]) -> (T, usize) {
fast_float::parse_partial(bytes).unwrap()
fn parse_float<T: fast_float2::FastFloat>(bytes: &[u8]) -> (T, usize) {
fast_float2::parse_partial(bytes).unwrap()
}

0 comments on commit 4a4de1b

Please sign in to comment.