Skip to content

Commit

Permalink
refactor(parser): address clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
martinohmann committed Jul 17, 2023
1 parent 694ca89 commit baaa35a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/hcl-edit/src/parser/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ fn expr_inner<'i, 's>(
//
// Note: matching a single `=` is ambiguous as it could also be an object
// key-value separator, so we'll need to match on `==`.
Ok(b"==")
| Ok([b'!' | b'<' | b'>' | b'+' | b'-' | b'*' | b'/' | b'%' | b'&' | b'|', _]) => {
Ok(
b"=="
| [b'!' | b'<' | b'>' | b'+' | b'-' | b'*' | b'/' | b'%' | b'&' | b'|', _],
) => {
state.borrow_mut().on_ws(suffix);
return binary_op(state).parse_next(input);
}
Expand Down

0 comments on commit baaa35a

Please sign in to comment.