Implement Debug for File
This commit is contained in:
parent
55d6de627a
commit
c82f9ea6ae
1 changed files with 8 additions and 0 deletions
|
@ -238,3 +238,11 @@ impl File {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Debug for File {
|
||||||
|
|
||||||
|
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
||||||
|
write!(f, "File[{:?}] header: '{:?}', data: '{:?}')",
|
||||||
|
self.id, self.header, self.data)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue