mirror of
https://github.com/servo/servo.git
synced 2025-06-17 21:04:28 +00:00
auto merge of #5072 : Adenilson/servo/cleanWarnings01, r=jdm
This commit is contained in:
commit
a8b55e821a
1 changed files with 8 additions and 8 deletions
|
@ -170,13 +170,13 @@ impl DisplayList {
|
||||||
match *item {
|
match *item {
|
||||||
// TODO(savago): would be nice to have other information associated with
|
// TODO(savago): would be nice to have other information associated with
|
||||||
// each display item (e.g. coordinates?).
|
// each display item (e.g. coordinates?).
|
||||||
DisplayItem::SolidColorClass(ref solid_color) => println!("{} SolidColor.", indentation),
|
DisplayItem::SolidColorClass(ref _solid_color) => println!("{} SolidColor.", indentation),
|
||||||
DisplayItem::TextClass(ref text) => println!("{} TextClass.", indentation),
|
DisplayItem::TextClass(ref _text) => println!("{} TextClass.", indentation),
|
||||||
DisplayItem::ImageClass(ref image_item) => println!("{} ImageClass.", indentation),
|
DisplayItem::ImageClass(ref _image) => println!("{} ImageClass.", indentation),
|
||||||
DisplayItem::BorderClass(ref image_item) => println!("{} BorderClass.", indentation),
|
DisplayItem::BorderClass(ref _border) => println!("{} BorderClass.", indentation),
|
||||||
DisplayItem::GradientClass(ref image_item) => println!("{} GradientClass.", indentation),
|
DisplayItem::GradientClass(ref _gradient) => println!("{} GradientClass.", indentation),
|
||||||
DisplayItem::LineClass(ref line_item) => println!("{} LineClass.", indentation),
|
DisplayItem::LineClass(ref _line) => println!("{} LineClass.", indentation),
|
||||||
DisplayItem::BoxShadowClass(ref box_shadow_item) => println!("{} BoxShadowClass.", indentation),
|
DisplayItem::BoxShadowClass(ref _box_shadow) => println!("{} BoxShadowClass.", indentation),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
println!("\n");
|
println!("\n");
|
||||||
|
@ -190,7 +190,7 @@ impl DisplayList {
|
||||||
if subitem.display_list.children.len() != 0 {
|
if subitem.display_list.children.len() != 0 {
|
||||||
// Rant: String doesn't have a substr() method that won't overflow if the
|
// Rant: String doesn't have a substr() method that won't overflow if the
|
||||||
// selected range is bigger than the string length.
|
// selected range is bigger than the string length.
|
||||||
subitem.display_list.print_items(indentation.clone()+indentation.slice(0, min_length));
|
subitem.display_list.print_items(indentation.clone()+&indentation[0..min_length]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue