aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlinputelement.rs
diff options
context:
space:
mode:
authorOluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com>2024-03-29 11:05:20 +0100
committerGitHub <noreply@github.com>2024-03-29 10:05:20 +0000
commitc3b6d40f90c30e74bec135306e7cfc034123e3df (patch)
tree2b9b63706d606c8802ee436f44d38d58e7ffdede /components/script/dom/htmlinputelement.rs
parent49c6b2668f99c6dac54802a0cc92f9d01457cb6a (diff)
downloadservo-c3b6d40f90c30e74bec135306e7cfc034123e3df.tar.gz
servo-c3b6d40f90c30e74bec135306e7cfc034123e3df.zip
clippy: Fix len_zero warnings (#31935)
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