Allow fluent style

This commit is contained in:
sharkdp
2020-04-21 21:29:47 +02:00
committed by David Peter
parent f8d0956893
commit 3bacfc5184
3 changed files with 20 additions and 16 deletions

View File

@ -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");
}