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

Commit

Permalink
[fix] delete
Browse files Browse the repository at this point in the history
  • Loading branch information
icepuma committed Dec 5, 2018
1 parent 2267406 commit 7534495
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/service_requester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ impl ServiceRequester {
}

#[inline]
pub fn delete<U, F>(&self, url: U) -> impl Future<Item = (), Error = Problem>
pub fn delete<U, F, O>(&self, url: U) -> impl Future<Item = O, Error = Problem>
where
U: AsRef<str>,
O: ws_try::FromClientResponse<Result = O, FutureResult = F>,
F: Future<Item = O, Error = Problem>,
{
self.without_body(http::Method::DELETE, url)
}
Expand Down

0 comments on commit 7534495

Please sign in to comment.