mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Auto merge of #7208 - jxs:master, r=Ms2ger
replace .len() == 0 with is_empty() closes #7198 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7208) <!-- Reviewable:end -->
This commit is contained in:
commit
85022a4c34
20 changed files with 25 additions and 29 deletions
|
@ -586,7 +586,7 @@ impl StackingContext {
|
|||
|
||||
pub fn print(&self, mut indentation: String) {
|
||||
// We cover the case of an empty string.
|
||||
if indentation.len() == 0 {
|
||||
if indentation.is_empty() {
|
||||
indentation = "####".to_owned();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue