diff options
Diffstat (limited to 'components/script/dom/htmlinputelement.rs')
-rwxr-xr-x | components/script/dom/htmlinputelement.rs | 2 |
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 |