From 4161bad54f690e77f53ca1f0f4426161e60fa4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Barv=C3=AD=C5=99?= Date: Fri, 31 Mar 2023 17:13:31 +0200 Subject: FIX lint clippy::len_without_is_empty (#451) --- src/syntax/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/syntax/parser.rs') 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(); } -- cgit v1.2.3