aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/xpath/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/xpath/parser.rs')
-rw-r--r--components/script/xpath/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/xpath/parser.rs b/components/script/xpath/parser.rs
index cec3148bc70..b1a4bfcc42d 100644
--- a/components/script/xpath/parser.rs
+++ b/components/script/xpath/parser.rs
@@ -352,7 +352,7 @@ impl CoreFunction {
let min = self.min_args();
let max = self.max_args();
- num_args >= min && max.map_or(true, |max| num_args <= max)
+ num_args >= min && max.is_none_or(|max| num_args <= max)
}
}