Skip to content

Commit

Permalink
Trying to appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
if-loop69420 committed Aug 23, 2024
1 parent fa7d498 commit f56c9f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/grammar/function_invocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ pub(crate) fn opt_function_invocation(p: &mut Parser) -> bool {
fn is_start_of_function(lookahead: Vec<TokenKind>) -> bool {
if lookahead.len() < 3 {
false
} else if lookahead[0] == T!["("] {
true
} else if lookahead[0] == T![.] && lookahead[1].is_ident() && lookahead[2] == T!["("] {
} else if lookahead[0] == T!["("]
|| lookahead[0] == T![.] && lookahead[1].is_ident() && lookahead[2] == T!["("]
{
true
} else {
false
Expand Down

0 comments on commit f56c9f7

Please sign in to comment.