From 30351500bb2f251f35191508113e29003d5c11a1 Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Tue, 31 Jan 2023 21:13:39 +0100 Subject: [PATCH] fixup! attr valid: return whether attrs non-empty --- src/attr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attr.rs b/src/attr.rs index 63079f6..08ce9f0 100644 --- a/src/attr.rs +++ b/src/attr.rs @@ -16,7 +16,7 @@ pub fn valid>(chars: I) -> (usize, bool) { for e in &mut p { match e { Element::Class(..) | Element::Identifier(..) | Element::Attribute(..) => { - has_attr = true + has_attr = true; } Element::Invalid => return (0, false), }