mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
layout: When printing out debug info for the float list, include
information about each float.
This commit is contained in:
parent
4ae6a68e35
commit
d2511e33c6
1 changed files with 5 additions and 1 deletions
|
@ -79,7 +79,11 @@ impl FloatList {
|
|||
|
||||
impl fmt::Debug for FloatList {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "max_block_start={:?} floats={}", self.max_block_start, self.floats.len())
|
||||
try!(write!(f, "max_block_start={:?} floats={}", self.max_block_start, self.floats.len()));
|
||||
for float in self.floats.iter() {
|
||||
try!(write!(f, " {:?}", float));
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue