style: Implement Kleene logic for query feature expressions

Differential Revision: https://phabricator.services.mozilla.com/D163879
This commit is contained in:
Oriol Brufau 2022-12-06 12:06:37 +00:00 committed by Martin Robinson
parent 134f680503
commit 6c02e9fdaa
2 changed files with 7 additions and 6 deletions

View file

@ -331,7 +331,7 @@ impl QueryCondition {
/// <general-enclosed>.
pub fn matches(&self, context: &computed::Context) -> KleeneValue {
match *self {
QueryCondition::Feature(ref f) => KleeneValue::from(f.matches(context)),
QueryCondition::Feature(ref f) => f.matches(context),
QueryCondition::GeneralEnclosed(_) => KleeneValue::Unknown,
QueryCondition::InParens(ref c) => c.matches(context),
QueryCondition::Not(ref c) => !c.matches(context),