Merge pull request #1294 from matthiasbeyer/libimagstore/store-debug-fix

Simplify Store debug impl
This commit is contained in:
Matthias Beyer 2018-02-19 12:27:37 +01:00 committed by GitHub
commit 7653a040da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -752,10 +752,7 @@ impl Store {
impl Debug for Store { impl Debug for Store {
fn fmt(&self, fmt: &mut Formatter) -> RResult<(), FMTError> { fn fmt(&self, fmt: &mut Formatter) -> RResult<(), FMTError> {
write!(fmt, writeln!(fmt, "Store location = {:?}, entries = {:?}", self.location, self.entries)
r#"Store\n\tlocation = {:?}\n\tentries = {:?}\n"#,
self.location,
self.entries)
} }
} }