mirror of
https://github.com/sharkdp/bat
synced 2026-08-08 19:41:45 +00:00
Allow fluent style
This commit is contained in:
+4
-5
@@ -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