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 {