on master help sign in
Remove comment in both examples
4664fb6Fahmi Akbar Wildana
examples/using_controller.rs−1
@@ -19,7 +19,6 @@ fn main() {
19 let mut add_file = |file: &'static str| config.files.push(InputFile::Ordinary(file));
19 let mut add_file = |file: &'static str| config.files.push(InputFile::Ordinary(file));
20
20
21 add_file("Cargo.toml");
21 add_file("Cargo.toml");
22− // add_file("build.rs");
23
22
24 let print = || Controller::new(&config, &assets).run();
23 let print = || Controller::new(&config, &assets).run();
25 print().expect("no error");
24 print().expect("no error");
examples/using_printer.rs−1
@@ -26,7 +26,6 @@ fn main() -> bat::errors::Result<()> {
26 };
26 };
27 let mut add_file = |file: &'static str| config.files.push(InputFile::Ordinary(file));
27 let mut add_file = |file: &'static str| config.files.push(InputFile::Ordinary(file));
28
28
29− // add_file("Cargo.toml");
30 add_file("build.rs");
29 add_file("build.rs");
31
30
32 let mut output_type = OutputType::from_mode(config.paging_mode, config.pager)?;
31 let mut output_type = OutputType::from_mode(config.paging_mode, config.pager)?;