use argument

This commit is contained in:
Folkert 2021-02-26 15:10:23 +01:00
parent fed292811f
commit 64ce731d17

View file

@ -4,7 +4,7 @@ use std::char;
use std::str::from_utf8_unchecked; use std::str::from_utf8_unchecked;
pub fn number_literal<'a>() -> impl Parser<'a, Expr<'a>, Number> { pub fn number_literal<'a>() -> impl Parser<'a, Expr<'a>, Number> {
move |arena, state: State<'a>| { move |_arena, state: State<'a>| {
match state.bytes.get(0) { match state.bytes.get(0) {
Some(first_byte) if *first_byte == b'-' => { Some(first_byte) if *first_byte == b'-' => {
// drop the minus // drop the minus
@ -52,7 +52,7 @@ fn chomp_number_base<'a>(
Expr::NonBase10Int { Expr::NonBase10Int {
is_negative, is_negative,
string, string,
base: Base::Binary, base,
}, },
new, new,
)) ))