From 3212429c9e39c4f02edfb09fb9340c282143564d Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 19 Dec 2015 11:44:29 +0100 Subject: [PATCH] Impl Debug for Parser --- src/storage/parser.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/storage/parser.rs b/src/storage/parser.rs index 8afb0d9c..55f4f15a 100644 --- a/src/storage/parser.rs +++ b/src/storage/parser.rs @@ -171,3 +171,14 @@ impl Parser where } +impl Debug for Parser + where HP: FileHeaderParser +{ + + fn fmt(&self, fmt: &mut Formatter) -> fmt::Result { + write!(fmt, "Parser<{:?}>", self.headerp); + + Ok(()) + } + +}