diff --git a/prqlc/prqlc-parser/src/lexer/mod.rs b/prqlc/prqlc-parser/src/lexer/mod.rs index 59efa03b4ba3..52edd450d84e 100644 --- a/prqlc/prqlc-parser/src/lexer/mod.rs +++ b/prqlc/prqlc-parser/src/lexer/mod.rs @@ -426,9 +426,9 @@ fn parse_number_with_base<'a>( .repeated() .at_least(1) .at_most(max_digits) - .collect::() - .map(move |digits| { - i64::from_str_radix(&digits, base) + .to_slice() + .map(move |digits: &str| { + i64::from_str_radix(digits, base) .map(Literal::Integer) .unwrap_or(Literal::Integer(0)) }),