Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Fixing deprecated compiler constructs (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-makowski authored Sep 4, 2021
1 parent ec075fa commit bf0967e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v1/async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub trait RunnableAsyncRequest<ResponseType> {
fn send_to(
&self,
api: &AsyncApi,
) -> Box<Future<Item = ResponseType, Error = reqwest::Error> + Send>;
) -> Box<dyn Future<Item = ResponseType, Error = reqwest::Error> + Send>;
}

impl<'a, RequestType, ResponseType> RunnableAsyncRequest<ResponseType> for RequestType
Expand All @@ -44,7 +44,7 @@ where
fn send_to(
&self,
api: &AsyncApi,
) -> Box<Future<Item = ResponseType, Error = reqwest::Error> + Send> {
) -> Box<dyn Future<Item = ResponseType, Error = reqwest::Error> + Send> {
let endpoint = format!("{}/{}", api.url, self.get_endpoint());

let future = api
Expand Down

0 comments on commit bf0967e

Please sign in to comment.