diff --git a/src/ui/file.rs b/src/ui/file.rs index b99726f4..6c9eaf0d 100644 --- a/src/ui/file.rs +++ b/src/ui/file.rs @@ -23,6 +23,21 @@ pub trait FilePrinter { } } + fn print_file_custom(&self, file: Rc>, f: &F) + where F: Fn(Rc>) -> String + { + info!("{}", f(file)); + } + + fn print_files_custom(&self, files: I, f: &F) + where I: Iterator>>, + F: Fn(Rc>) -> String + { + for file in files { + self.print_file_custom(file, f); + } + } + } struct DebugPrinter {