diff options
author | Teddy Wing | 2017-04-13 02:42:37 +0200 |
---|---|---|
committer | Teddy Wing | 2017-04-13 02:42:37 +0200 |
commit | 24bc7b9bedd0da8e664e143c468e9f1405ded2f3 (patch) | |
tree | 969b19c988f2d434e8207074d635f4e1a718a87d | |
parent | a2ba5bbb7077b6917df180e35188dd7e3b2d0ab9 (diff) | |
download | HearURL-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.
-rw-r--r-- | src/main.rs | 2 |
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)?; } } } |