Impl Debug for Parser
This commit is contained in:
parent
d5af28d98d
commit
3212429c9e
1 changed files with 11 additions and 0 deletions
|
@ -171,3 +171,14 @@ impl<HP> Parser<HP> where
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<HP> Debug for Parser<HP>
|
||||||
|
where HP: FileHeaderParser
|
||||||
|
{
|
||||||
|
|
||||||
|
fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
|
||||||
|
write!(fmt, "Parser<{:?}>", self.headerp);
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue