From 37d742dce6044804433046e4aa001b28794c3b67 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 2 Jun 2023 10:23:04 +0200 Subject: [PATCH] Add some bounds for HttpClient trait --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 59e1e89..c354865 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -621,7 +621,7 @@ impl Default for DefaultClient { } /// A HTTP client based on [`hyper::Client`] -pub trait HttpClient { +pub trait HttpClient: Send + Sync + 'static { /// Send the given request and return the response fn request(&self, req: Request) -> ResponseFuture; }