diff --git a/src/selector/simple.rs b/src/selector/simple.rs index fe7ea0c..027d67d 100644 --- a/src/selector/simple.rs +++ b/src/selector/simple.rs @@ -349,7 +349,7 @@ impl SimpleSelector { }) = their_simple { if SUBSELECTOR_PSEUDOS.contains(&normalized_name.as_str()) { - sel.components.iter().all(|complex| { + return sel.components.iter().all(|complex| { if complex.components.len() != 1 { return false; };