layout: When printing out debug info for the float list, include

information about each float.
This commit is contained in:
Patrick Walton 2016-04-27 12:54:05 -07:00
parent 4ae6a68e35
commit d2511e33c6

View file

@ -79,7 +79,11 @@ impl FloatList {
impl fmt::Debug for FloatList { impl fmt::Debug for FloatList {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 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(())
} }
} }