mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01: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
|
@ -721,7 +721,7 @@ impl ModuleTree {
|
|||
|
||||
match specifier_urls {
|
||||
// Step 3.
|
||||
Ok(valid_specifier_urls) if valid_specifier_urls.len() == 0 => {
|
||||
Ok(valid_specifier_urls) if valid_specifier_urls.is_empty() => {
|
||||
debug!("Module {} doesn't have any dependencies.", self.url.clone());
|
||||
self.advance_finished_and_link(&global);
|
||||
},
|
||||
|
@ -746,7 +746,7 @@ impl ModuleTree {
|
|||
}
|
||||
|
||||
// Step 3.
|
||||
if urls.len() == 0 {
|
||||
if urls.is_empty() {
|
||||
debug!(
|
||||
"After checking with visited urls, module {} doesn't have dependencies to load.",
|
||||
self.url.clone()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue