mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
use argument
This commit is contained in:
parent
fed292811f
commit
64ce731d17
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
))
|
))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue