Compiler warnings 20190123 (#2462)
* cleanup compiler warnings: unused imports * rustfmt * more compiler warnings
This commit is contained in:
committed by
Antioch Peverell
parent
0e0ec247e4
commit
dd1a24dcbc
@@ -140,7 +140,7 @@ impl Handler for BlockHandler {
|
||||
return response(
|
||||
StatusCode::BAD_REQUEST,
|
||||
format!("failed to parse input: {}", e),
|
||||
)
|
||||
);
|
||||
}
|
||||
Ok(h) => h,
|
||||
};
|
||||
|
||||
@@ -85,7 +85,7 @@ impl Handler for PeerHandler {
|
||||
return response(
|
||||
StatusCode::BAD_REQUEST,
|
||||
format!("invalid peer address: {}", e),
|
||||
)
|
||||
);
|
||||
}
|
||||
Ok(addr) => addr,
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user