fix compile warnings (#10993)
* fix warnings * fix: failing build, use `spec` as dev-dependency
This commit is contained in:
committed by
Andronik Ordian
parent
505e284932
commit
dab2a6bd4b
@@ -271,7 +271,7 @@ impl Client {
|
||||
}
|
||||
|
||||
impl Fetch for Client {
|
||||
type Result = Box<Future<Item=Response, Error=Error> + Send + 'static>;
|
||||
type Result = Box<dyn Future<Item=Response, Error=Error> + Send + 'static>;
|
||||
|
||||
fn fetch(&self, request: Request, abort: Abort) -> Self::Result {
|
||||
debug!(target: "fetch", "fetching: {:?}", request.url());
|
||||
@@ -608,7 +608,7 @@ impl fmt::Display for Error {
|
||||
|
||||
impl ::std::error::Error for Error {
|
||||
fn description(&self) -> &str { "Fetch client error" }
|
||||
fn cause(&self) -> Option<&::std::error::Error> { None }
|
||||
fn cause(&self) -> Option<&dyn std::error::Error> { None }
|
||||
}
|
||||
|
||||
impl From<hyper::Error> for Error {
|
||||
|
||||
Reference in New Issue
Block a user