From f0c186f33b76b942770c3990840e2d635584b945 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 28 Dec 2015 13:56:20 +0100 Subject: [PATCH] Impl FilePrinter for DebugPrinter ::print_file_custom() --- src/ui/file.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ui/file.rs b/src/ui/file.rs index 6c9eaf0d..43c46231 100644 --- a/src/ui/file.rs +++ b/src/ui/file.rs @@ -58,6 +58,14 @@ impl FilePrinter for DebugPrinter { } } + fn print_file_custom(&self, file: Rc>, f: &F) + where F: Fn(Rc>) -> String + { + if self.debug { + debug!("[DebugPrinter] ->\n{:?}", f(file)); + } + } + } struct SimplePrinter {