Skip to content

Commit

Permalink
Update crates/aiken-lang/src/parser.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Benkort <5680256+KtorZ@users.noreply.github.com>
  • Loading branch information
rvcas and KtorZ committed Mar 17, 2023
1 parent 950598b commit 22880a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/aiken-lang/src/parser.rs
Expand Up @@ -305,9 +305,9 @@ pub fn validator_parser() -> impl Parser<Token, ast::UntypedDefinition, Error =

ast::UntypedDefinition::Validator(ast::Validator {
doc: None,
// unwrap is safe to do here because
// above we use `.at_least(1)`
fun: functions.next().unwrap(),
fun: functions
.next()
.expect("unwrapping safe because there's 'at_least(1)' function"),
other_fun: functions.next(),
location: Span {
start: span.start,
Expand Down

0 comments on commit 22880a3

Please sign in to comment.