mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix len_zero warnings (#31935)
This commit is contained in:
parent
49c6b2668f
commit
c3b6d40f90
5 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue