Compiler warnings 20190123 (#2462)

* cleanup compiler warnings: unused imports

* rustfmt

* more compiler warnings
This commit is contained in:
Simon B
2019-01-25 11:09:32 +01:00
committed by Antioch Peverell
parent 0e0ec247e4
commit dd1a24dcbc
14 changed files with 3 additions and 32 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ impl Handler for BlockHandler {
return response(
StatusCode::BAD_REQUEST,
format!("failed to parse input: {}", e),
)
);
}
Ok(h) => h,
};
+1 -1
View File
@@ -85,7 +85,7 @@ impl Handler for PeerHandler {
return response(
StatusCode::BAD_REQUEST,
format!("invalid peer address: {}", e),
)
);
}
Ok(addr) => addr,
},
-8
View File
@@ -22,22 +22,14 @@ use grin_util as util;
use failure;
#[macro_use]
extern crate failure_derive;
use hyper;
#[macro_use]
extern crate lazy_static;
use serde;
#[macro_use]
extern crate serde_derive;
use serde_json;
#[macro_use]
extern crate log;
use hyper_rustls;
use rustls;
use tokio_tcp;
pub mod auth;
pub mod client;
mod handlers;