diff options
| author | Marek Barvíř <barvirm@gmail.com> | 2023-03-31 17:13:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-31 17:13:31 +0200 |
| commit | 4161bad54f690e77f53ca1f0f4426161e60fa4ce (patch) | |
| tree | 4cde0d6d8d2b536871230f84dcf0fbec798f4056 /src/syntax/parser.rs | |
| parent | 418bd89ba4c5f50c7e279a84d7a0e3c51d319449 (diff) | |
FIX lint clippy::len_without_is_empty (#451)
Diffstat (limited to 'src/syntax/parser.rs')
| -rw-r--r-- | src/syntax/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntax/parser.rs b/src/syntax/parser.rs index 46150ff2..e95da4af 100644 --- a/src/syntax/parser.rs +++ b/src/syntax/parser.rs @@ -1324,7 +1324,7 @@ impl<'s> Parser<'s> { while self .nodes .last() - .map_or(false, |child| child.kind() == SyntaxKind::Error && child.len() == 0) + .map_or(false, |child| child.kind() == SyntaxKind::Error && child.is_empty()) { self.nodes.pop(); } |
