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:
bors-servo 2015-08-14 00:51:59 -06:00
commit 85022a4c34
20 changed files with 25 additions and 29 deletions

View file

@ -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();
}