We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6f47a6 commit 4433fb6Copy full SHA for 4433fb6
src/parser.rs
@@ -310,7 +310,9 @@ pub fn literal(rule: Pair<Rule>) -> Parsed<Literal> {
310
if num.contains('.') || num.contains('e') || num.contains('E') {
311
Ok(Literal::Float(num.parse::<f64>().map_err(|e| (e, num))?))
312
} else {
313
- Ok(Literal::Int(num.trim().parse::<i64>().map_err(|e| (e, num))?))
+ Ok(Literal::Int(
314
+ num.trim().parse::<i64>().map_err(|e| (e, num))?,
315
+ ))
316
}
317
318
0 commit comments