summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-bookmark
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-bookmark
parentc18c0bbbe455119c935510bd6fb65292e97950b1 (diff)
Use output stream from Runtime::stdout()
Diffstat (limited to 'bin/domain/imag-bookmark')
-rw-r--r--bin/domain/imag-bookmark/src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/domain/imag-bookmark/src/main.rs b/bin/domain/imag-bookmark/src/main.rs
index 9fbd75e0..48f349c4 100644
--- a/bin/domain/imag-bookmark/src/main.rs
+++ b/bin/domain/imag-bookmark/src/main.rs
@@ -135,11 +135,10 @@ fn list(rt: &Runtime) {
.map_err_trace_exit_unwrap(1);
let links = collection.links(rt.store()).map_err_trace_exit_unwrap(1);
- let mut out = ::std::io::stdout();
debug!("Listing...");
for (i, link) in links.enumerate() {
match link {
- Ok(link) => writeln!(out, "{: >3}: {}", i, link).to_exit_code().unwrap_or_exit(),
+ Ok(link) => writeln!(rt.stdout(), "{: >3}: {}", i, link).to_exit_code().unwrap_or_exit(),
Err(e) => trace_error(&e)
}
};