summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-todo
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-02-26 22:57:17 +0100
committerMatthias Beyer <mail@beyermatthias.de>2018-03-04 13:57:44 +0100
commit50461b839acba753cae899c137ea364649cfd5b9 (patch)
tree3c4ab618581de6f0787ee3ec67e0a682c0d21513 /bin/domain/imag-todo
parentc18c0bbbe455119c935510bd6fb65292e97950b1 (diff)
Use output stream from Runtime::stdout()
Diffstat (limited to 'bin/domain/imag-todo')
-rw-r--r--bin/domain/imag-todo/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/domain/imag-todo/src/main.rs b/bin/domain/imag-todo/src/main.rs
index 8fab4e46..7eaf1d80 100644
--- a/bin/domain/imag-todo/src/main.rs
+++ b/bin/domain/imag-todo/src/main.rs
@@ -71,7 +71,7 @@ fn tw_hook(rt: &Runtime) {
.import_task_from_reader(stdin)
.map_err_trace_exit_unwrap(1);
- let _ = writeln!(::std::io::stdout(), "{}\nTask {} stored in imag", line, uuid)
+ let _ = writeln!(rt.stdout(), "{}\nTask {} stored in imag", line, uuid)
.to_exit_code()
.unwrap_or_exit();
@@ -148,7 +148,7 @@ fn list(rt: &Runtime) {
};
// and then print that
- let _ = writeln!(::std::io::stdout(), "{}", outstring).to_exit_code().unwrap_or_exit();
+ let _ = writeln!(rt.stdout(), "{}", outstring).to_exit_code().unwrap_or_exit();
});
res.map_err_trace().ok();