From e2c33b48ace078fba17a91844a81fc7faaf5ba5f Mon Sep 17 00:00:00 2001 From: Fabian Loeschner Date: Tue, 9 Nov 2021 11:09:48 +0100 Subject: [PATCH] Simplify Deserialize bound --- nalgebra-sparse/src/coo.rs | 2 +- nalgebra-sparse/src/csc.rs | 2 +- nalgebra-sparse/src/csr.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nalgebra-sparse/src/coo.rs b/nalgebra-sparse/src/coo.rs index 35a14083..b84b2cc5 100644 --- a/nalgebra-sparse/src/coo.rs +++ b/nalgebra-sparse/src/coo.rs @@ -320,7 +320,7 @@ struct CooMatrixDeserializationData { #[cfg(feature = "serde-serialize")] impl<'de, T> Deserialize<'de> for CooMatrix where - T: for<'de2> Deserialize<'de2>, + T: Deserialize<'de>, { fn deserialize(deserializer: D) -> Result, D::Error> where diff --git a/nalgebra-sparse/src/csc.rs b/nalgebra-sparse/src/csc.rs index 512be540..fccc6146 100644 --- a/nalgebra-sparse/src/csc.rs +++ b/nalgebra-sparse/src/csc.rs @@ -565,7 +565,7 @@ struct CscMatrixDeserializationData { #[cfg(feature = "serde-serialize")] impl<'de, T> Deserialize<'de> for CscMatrix where - T: for<'de2> Deserialize<'de2>, + T: Deserialize<'de>, { fn deserialize(deserializer: D) -> Result, D::Error> where diff --git a/nalgebra-sparse/src/csr.rs b/nalgebra-sparse/src/csr.rs index 9e31c90c..31375340 100644 --- a/nalgebra-sparse/src/csr.rs +++ b/nalgebra-sparse/src/csr.rs @@ -636,7 +636,7 @@ struct CsrMatrixDeserializationData { #[cfg(feature = "serde-serialize")] impl<'de, T> Deserialize<'de> for CsrMatrix where - T: for<'de2> Deserialize<'de2>, + T: Deserialize<'de>, { fn deserialize(deserializer: D) -> Result, D::Error> where