mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-04-25 09:22:19 +00:00
Bracket notation after recursive descent does not recurse #40 - fix clippy error
This commit is contained in:
parent
241a7f482d
commit
e9f69cd2b9
@ -972,10 +972,10 @@ impl<'a, 'b> Selector<'a, 'b> {
|
||||
|
||||
fn is_last_before_token_match(&mut self, token: ParseToken) -> bool {
|
||||
if self.tokens.len() > 1 {
|
||||
return &token == &self.tokens[self.tokens.len() - 2];
|
||||
return token == self.tokens[self.tokens.len() - 2];
|
||||
}
|
||||
|
||||
return false;
|
||||
false
|
||||
}
|
||||
|
||||
fn visit_all(&mut self) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user