From 3c1d03039a1c7ba6df57f4da1ecad599594cf957 Mon Sep 17 00:00:00 2001 From: Guillaume Leroy Date: Fri, 1 Dec 2023 20:52:58 +0100 Subject: [PATCH] fix(http): make trait extends Send + Sync --- src/http.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.rs b/src/http.rs index 9099dd3..a0c1c12 100644 --- a/src/http.rs +++ b/src/http.rs @@ -33,7 +33,7 @@ pub struct HttpRequest { /// /// [Example](https://github.com/leroyguillaume/mockable/tree/main/examples/http.rs). #[async_trait] -pub trait HttpServer { +pub trait HttpServer: Send + Sync { /// Returns the next request received by the server. /// /// `None` is returned if the server is stopped.