Skip to content

Commit 00d2f1d

Browse files
dannasmanyouknowone
authored andcommitted
fix formatting issues
1 parent 50638bd commit 00d2f1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

literal/src/float.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub fn parse_str(literal: &str) -> Option<f64> {
66
parse_inner(literal.trim().as_bytes())
77
}
88

9-
fn strip_underlines(literal: &[u8]) -> Option<Vec<u8>>{
9+
fn strip_underlines(literal: &[u8]) -> Option<Vec<u8>> {
1010
let mut prev = b'\0';
1111
let mut dup = Vec::<u8>::new();
1212
for p in literal {
@@ -59,7 +59,7 @@ fn parse_inner(literal: &[u8]) -> Option<f64> {
5959
// Use custom function for underline handling for now.
6060
// For further information see https://github.com/Alexhuszagh/rust-lexical/issues/96.
6161
let stripped = strip_underlines(literal)?;
62-
62+
6363
// lexical-core's format::PYTHON_STRING is inaccurate
6464
const PYTHON_STRING: u128 = NumberFormatBuilder::rebuild(PYTHON3_LITERAL)
6565
.no_special(false)

0 commit comments

Comments
 (0)