error with send + sync

This commit is contained in:
midefos 2025-01-18 21:35:15 +01:00
parent 6fe4eb1956
commit 1d0e9c379b

View File

@ -7,7 +7,7 @@ use std::error::Error;
pub struct Requester;
impl Requester {
pub async fn extract_body<T>(req: Request<Incoming>) -> Result<T, Box<dyn Error>>
pub async fn extract_body<T>(req: Request<Incoming>) -> Result<T, Box<dyn Error + Send + Sync>>
where
T: DeserializeOwned,
{