mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
replace len() !=0 with !is_empty()
This commit is contained in:
parent
3bb930661d
commit
1e20447746
3 changed files with 3 additions and 4 deletions
|
@ -213,7 +213,7 @@ impl DisplayList {
|
|||
};
|
||||
|
||||
doit(&(self.all_display_items()));
|
||||
if self.children.len() != 0 {
|
||||
if !self.children.is_empty() {
|
||||
println!("{} Children stacking contexts list length: {}",
|
||||
indentation,
|
||||
self.children.len());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue