Simplify Deserialize bound

This commit is contained in:
Fabian Loeschner 2021-11-09 11:09:48 +01:00
parent bfaf29393c
commit e2c33b48ac
3 changed files with 3 additions and 3 deletions

View File

@ -320,7 +320,7 @@ struct CooMatrixDeserializationData<T> {
#[cfg(feature = "serde-serialize")] #[cfg(feature = "serde-serialize")]
impl<'de, T> Deserialize<'de> for CooMatrix<T> impl<'de, T> Deserialize<'de> for CooMatrix<T>
where where
T: for<'de2> Deserialize<'de2>, T: Deserialize<'de>,
{ {
fn deserialize<D>(deserializer: D) -> Result<CooMatrix<T>, D::Error> fn deserialize<D>(deserializer: D) -> Result<CooMatrix<T>, D::Error>
where where

View File

@ -565,7 +565,7 @@ struct CscMatrixDeserializationData<T> {
#[cfg(feature = "serde-serialize")] #[cfg(feature = "serde-serialize")]
impl<'de, T> Deserialize<'de> for CscMatrix<T> impl<'de, T> Deserialize<'de> for CscMatrix<T>
where where
T: for<'de2> Deserialize<'de2>, T: Deserialize<'de>,
{ {
fn deserialize<D>(deserializer: D) -> Result<CscMatrix<T>, D::Error> fn deserialize<D>(deserializer: D) -> Result<CscMatrix<T>, D::Error>
where where

View File

@ -636,7 +636,7 @@ struct CsrMatrixDeserializationData<T> {
#[cfg(feature = "serde-serialize")] #[cfg(feature = "serde-serialize")]
impl<'de, T> Deserialize<'de> for CsrMatrix<T> impl<'de, T> Deserialize<'de> for CsrMatrix<T>
where where
T: for<'de2> Deserialize<'de2>, T: Deserialize<'de>,
{ {
fn deserialize<D>(deserializer: D) -> Result<CsrMatrix<T>, D::Error> fn deserialize<D>(deserializer: D) -> Result<CsrMatrix<T>, D::Error>
where where