Skip to content

Commit fd06b0a

Browse files
authored
Remove an underscore in floating point exponent
This is a questionable feature in Rust lexer and `simd-json` is the only known crate on crates.io that is using it. It's not being removed *yet*, but it would still be better to avoid using it. See rust-lang/rust#137394 and linked issues for more details.
1 parent ceadde8 commit fd06b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/numberparse/correct.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ mod test {
566566
fn minus_309() -> Result<(), crate::Error> {
567567
assert_eq!(
568568
to_value_from_str("-5.96916642387374e-309")?,
569-
Static(StaticNode::from(-5.969_166_423_873_74e-_309))
569+
Static(StaticNode::from(-5.969_166_423_873_74e-309))
570570
);
571571
Ok(())
572572
}

0 commit comments

Comments
 (0)