We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50638bd commit 00d2f1dCopy full SHA for 00d2f1d
literal/src/float.rs
@@ -6,7 +6,7 @@ pub fn parse_str(literal: &str) -> Option<f64> {
6
parse_inner(literal.trim().as_bytes())
7
}
8
9
-fn strip_underlines(literal: &[u8]) -> Option<Vec<u8>>{
+fn strip_underlines(literal: &[u8]) -> Option<Vec<u8>> {
10
let mut prev = b'\0';
11
let mut dup = Vec::<u8>::new();
12
for p in literal {
@@ -59,7 +59,7 @@ fn parse_inner(literal: &[u8]) -> Option<f64> {
59
// Use custom function for underline handling for now.
60
// For further information see https://github.com/Alexhuszagh/rust-lexical/issues/96.
61
let stripped = strip_underlines(literal)?;
62
-
+
63
// lexical-core's format::PYTHON_STRING is inaccurate
64
const PYTHON_STRING: u128 = NumberFormatBuilder::rebuild(PYTHON3_LITERAL)
65
.no_special(false)
0 commit comments