@@ -55,6 +55,12 @@ impl<'a> PrettyPrinter<'a> {
58+ /// Add an input which should be pretty-printed
59+ pub fn input(&mut self, input: Input<'a>) -> &mut Self {
60+ self.inputs.push(input);
58 /// Add a file which should be pretty-printed
64 /// Add a file which should be pretty-printed
59 pub fn input_file(&mut self, path: impl AsRef<OsStr>) -> &mut Self {
65 pub fn input_file(&mut self, path: impl AsRef<OsStr>) -> &mut Self {
60 self.inputs.push(Input::ordinary_file(path.as_ref()));
66 self.inputs.push(Input::ordinary_file(path.as_ref()));