summaryrefslogtreecommitdiffstats
path: root/examples/simple.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple.rs')
-rw-r--r--examples/simple.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/simple.rs b/examples/simple.rs
index 0a6b3d0d..a035b6c5 100644
--- a/examples/simple.rs
+++ b/examples/simple.rs
@@ -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");
}