aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 2ac689c..8b4cb5b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -100,6 +100,12 @@ fn main() {
let mut emitter = yaml_rust::YamlEmitter::new(&mut buffer);
emitter.dump(&yaml_data).unwrap();
+ // YamlEmitter doesn't output a trailing newline.
+ {
+ use std::io::Write;
+ writeln!(stdout_handle, "").unwrap();
+ }
+
dbconn.close().unwrap();
},
};