Allow fluent style

This commit is contained in:
sharkdp authored and David Peter committed 2020-04-22 23:55:28 +02:00
1 parent f8d0956893
commit 3bacfc5184
3 files changed
+20 -16

No files matched your search

+4 -5
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");
}