Skip to content

Commit

Permalink
Removing TryFrom<DataResponse<M>> for DataPayload<M> (#5044)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian authored Jun 12, 2024
1 parent cb7905d commit 3ba8f0f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions provider/core/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use crate::error::DataError;
use crate::marker::DynamicDataMarker;
use crate::request::DataLocale;
use alloc::boxed::Box;
use core::convert::TryFrom;
use core::fmt::Debug;
use core::marker::PhantomData;
use core::ops::Deref;
Expand Down Expand Up @@ -906,17 +905,6 @@ where
}
}

impl<M> TryFrom<DataResponse<M>> for DataPayload<M>
where
M: DynamicDataMarker,
{
type Error = core::convert::Infallible;

fn try_from(response: DataResponse<M>) -> Result<Self, Self::Error> {
Ok(response.payload)
}
}

impl<M> Debug for DataResponse<M>
where
M: DynamicDataMarker,
Expand Down

0 comments on commit 3ba8f0f

Please sign in to comment.