From 24a877d1873d70a38b82d2e3393c95b2d4f4c13f Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 16 Jul 2024 20:51:40 +0200 Subject: [PATCH] Add missing Send bound --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 274ffe4..f7fffee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -791,7 +791,7 @@ where /// Object safe body trait #[async_trait] -pub trait BytesBody { +pub trait BytesBody: Send { /// Convert the body into [`Bytes`] /// /// This consumes the body. The behavior for calling this method multiple times is undefined.