We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4840ec commit e500690Copy full SHA for e500690
src/onefetch/printer.rs
@@ -26,10 +26,10 @@ impl<W: Write> Printer<W> {
26
match &self.info.config.output {
27
Some(format) => match format {
28
SerializationFormat::Json => {
29
- write!(self.writer, "{}", serde_json::to_string_pretty(&self.info).unwrap())?
+ writeln!(self.writer, "{}", serde_json::to_string_pretty(&self.info).unwrap())?
30
}
31
SerializationFormat::Yaml => {
32
- write!(self.writer, "{}", serde_yaml::to_string(&self.info).unwrap())?
+ writeln!(self.writer, "{}", serde_yaml::to_string(&self.info).unwrap())?
33
34
},
35
None => {
0 commit comments