summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-07-31 09:49:34 -0400
committerAndrew Gallant <jamslam@gmail.com>2016-07-31 11:46:19 -0400
commit58cd19fde46dccecfadcf67d514de4150b448fa7 (patch)
tree5fdfe4c3b22fa335c5142eb4a53890890bb752bf /src/main.rs
parent80ae15049304acba9c6dfe4c97de535addf59553 (diff)
update deps and some rustup
This in particular updates to the latest packages available and fixes a few visibility warnings produced by rustc (that will eventually become hard errors).
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/main.rs b/src/main.rs
index b5ce386..492c780 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -20,7 +20,7 @@ extern crate threadpool;
use std::borrow::ToOwned;
use std::env;
use std::fmt;
-use std::io::{self, Write};
+use std::io;
use std::process;
use docopt::Docopt;
@@ -209,18 +209,6 @@ impl fmt::Display for CliError {
}
}
-impl From<byteorder::Error> for CliError {
- fn from(err: byteorder::Error) -> CliError {
- match err {
- byteorder::Error::UnexpectedEOF => {
- CliError::Other(
- "Got unexpected EOF when reading index.".to_owned())
- }
- byteorder::Error::Io(err) => From::from(err),
- }
- }
-}
-
impl From<docopt::Error> for CliError {
fn from(err: docopt::Error) -> CliError {
CliError::Flag(err)