Separate inputs from config

This commit is contained in:
sharkdp authored and David Peter committed 2020-04-22 23:55:28 +02:00
1 parent 5e5cb89da6
commit 1dc328ad49
10 files changed
+61 -41

No files matched your search

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