Prettify Store debug output implementation

This commit is contained in:
Matthias Beyer 2018-02-07 21:20:58 +01:00
parent edd5925f88
commit 8fcd2a6c8c

View file

@ -751,16 +751,11 @@ impl Store {
impl Debug for Store {
/// TODO: Make pretty.
fn fmt(&self, fmt: &mut Formatter) -> RResult<(), FMTError> {
write!(fmt, " --- Store ---\n")?;
write!(fmt, "\n")?;
write!(fmt, " - location : {:?}\n", self.location)?;
write!(fmt, "\n")?;
write!(fmt, "Entries:\n")?;
write!(fmt, "{:?}", self.entries)?;
write!(fmt, "\n")?;
Ok(())
write!(fmt,
r#"Store\n\tlocation = {:?}\n\tentries = {:?}\n"#,
self.location,
self.entries)
}
}