Update crates/aiken-lang/src/parser.rs
Co-authored-by: Matthias Benkort <5680256+KtorZ@users.noreply.github.com>
This commit is contained in:
parent
950598b534
commit
22880a300f
|
@ -305,9 +305,9 @@ pub fn validator_parser() -> impl Parser<Token, ast::UntypedDefinition, Error =
|
||||||
|
|
||||||
ast::UntypedDefinition::Validator(ast::Validator {
|
ast::UntypedDefinition::Validator(ast::Validator {
|
||||||
doc: None,
|
doc: None,
|
||||||
// unwrap is safe to do here because
|
fun: functions
|
||||||
// above we use `.at_least(1)`
|
.next()
|
||||||
fun: functions.next().unwrap(),
|
.expect("unwrapping safe because there's 'at_least(1)' function"),
|
||||||
other_fun: functions.next(),
|
other_fun: functions.next(),
|
||||||
location: Span {
|
location: Span {
|
||||||
start: span.start,
|
start: span.start,
|
||||||
|
|
Loading…
Reference in New Issue