aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlinputelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlinputelement.rs')
-rwxr-xr-xcomponents/script/dom/htmlinputelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs
index 99b2d30dd3b..b5abb5c7578 100755
--- a/components/script/dom/htmlinputelement.rs
+++ b/components/script/dom/htmlinputelement.rs
@@ -1881,7 +1881,7 @@ impl HTMLInputElement {
} else {
let opt_test_path = match opt_test_paths {
Some(paths) => {
- if paths.len() == 0 {
+ if paths.is_empty() {
return;
} else {
Some(paths[0].to_string()) // neglect other paths