aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2017-04-13 02:42:37 +0200
committerTeddy Wing2017-04-13 02:42:37 +0200
commit24bc7b9bedd0da8e664e143c468e9f1405ded2f3 (patch)
tree969b19c988f2d434e8207074d635f4e1a718a87d /src
parenta2ba5bbb7077b6917df180e35188dd7e3b2d0ab9 (diff)
downloadHearURL-24bc7b9bedd0da8e664e143c468e9f1405ded2f3.tar.bz2
main.rs: Add `try!` around STDERR writer
The call to write to STDERR returns a `Result`. Wrap it in a `try!` to handle the result and eliminate the "unused result" compilation warning.
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index c7137f6..fcd9cfd 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -14,7 +14,7 @@ fn open_stream() -> io::Result<()> {
println!("{}", url);
}
Err(e) => {
- write!(io::stderr(), "{}", e);
+ write!(io::stderr(), "{}", e)?;
}
}
}