error with send + sync
This commit is contained in:
parent
6fe4eb1956
commit
1d0e9c379b
@ -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,
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user