mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2024-06-11 09:49:24 +00:00
Use DeserializeOwned
instead of the HRTB over Deserialize
This commit is contained in:
parent
e54e9d9a9d
commit
616233d1d2
|
@ -2,7 +2,7 @@ use bytes::{BufMut, Bytes, BytesMut};
|
|||
use futures_core::{ready, stream::BoxStream, Stream};
|
||||
use pin_project_lite::pin_project;
|
||||
use reqwest::Response;
|
||||
use serde::Deserialize;
|
||||
use serde::de::DeserializeOwned;
|
||||
use std::{
|
||||
future::Future,
|
||||
marker::PhantomData,
|
||||
|
@ -57,7 +57,7 @@ pin_project! {
|
|||
|
||||
impl<T> Future for JsonFuture<T>
|
||||
where
|
||||
T: for<'de> Deserialize<'de>,
|
||||
T: DeserializeOwned,
|
||||
{
|
||||
type Output = Result<T, Error>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue