From d2511e33c676e57f270d5fe0bf9c3a079bd6ace1 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 27 Apr 2016 12:54:05 -0700 Subject: [PATCH] layout: When printing out debug info for the float list, include information about each float. --- components/layout/floats.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/layout/floats.rs b/components/layout/floats.rs index e4489f4288d..9a5d1521d58 100644 --- a/components/layout/floats.rs +++ b/components/layout/floats.rs @@ -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(()) } }