Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Cypher1 committed Sep 18, 2024
1 parent 0b0c1d2 commit c08ed38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions takolib/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl<'src, 'toks, T: Iterator<Item = &'toks Token>> ParseState<'src, 'toks, T> {
);
return Ok(None);
};
let (_binding_strength, mode) = if let TokenType::Op(op) = self.get_kind(&head) {
let mode = if let TokenType::Op(op) = self.get_kind(&head) {
let Some(mode) = binding_mode_from_op(op) else {
trace!("{indent}Not a binding Op", indent = self.indent());
return Ok(None);
Expand All @@ -190,11 +190,11 @@ impl<'src, 'toks, T: Iterator<Item = &'toks Token>> ParseState<'src, 'toks, T> {
indent = self.indent()
);
self.token(); // Consume the mode.
(op, mode)
mode
} else {
// Named arg!
trace!("{indent}Named arg?", indent = self.indent());
(Symbol::OpenParen, BindingMode::Given)
BindingMode::Given
};
let Ok(tok) = self.token_of_type(TokenType::Ident) else {
trace!("{indent}No name found for binding", indent = self.indent());
Expand Down

0 comments on commit c08ed38

Please sign in to comment.