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