File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ getrandom = { version = "0.2", features = ["js"] }
17
17
[dependencies ]
18
18
simdutf8 = { version = " 0.1.4" , features = [" public_imp" , " aarch64_neon" ] }
19
19
20
- lexical-core = { version = " 0.8" , features = [" format" ] }
21
20
beef = { version = " 0.5" , optional = true }
22
21
halfbrown = " 0.2"
23
22
value-trait = { version = " 0.9.0-rc.1" }
Original file line number Diff line number Diff line change @@ -381,10 +381,9 @@ fn f64_from_parts(
381
381
382
382
#[ cold]
383
383
fn f64_from_parts_slow ( slice : & [ u8 ] , offset : usize ) -> Result < StaticNode > {
384
- match lexical_core:: parse_with_options :: < f64 , { lexical_core:: format:: JSON } > (
385
- slice,
386
- & lexical_core:: parse_float_options:: JSON ,
387
- ) {
384
+ // we already validated the content of the slice we only need to translate
385
+ // the slice to a string and parse it as parse is not defined for a u8 slice
386
+ match unsafe { std:: str:: from_utf8_unchecked ( slice) . parse :: < f64 > ( ) } {
388
387
Ok ( val) => {
389
388
if val. is_infinite ( ) {
390
389
err ! ( offset, get!( slice, 0 ) )
You can’t perform that action at this time.
0 commit comments