mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-09 07:45:09 +02:00
Separate inputs from config
This commit is contained in:
@ -5,8 +5,9 @@ use std::ffi::OsStr;
|
||||
fn main() {
|
||||
let path_to_this_file = OsStr::new(file!());
|
||||
|
||||
PrettyPrinter::new()
|
||||
.file(path_to_this_file)
|
||||
.run()
|
||||
.expect("no errors");
|
||||
let mut printer = PrettyPrinter::new();
|
||||
|
||||
printer.file(path_to_this_file);
|
||||
|
||||
printer.run().expect("no errors");
|
||||
}
|
||||
|
Reference in New Issue
Block a user