forked from M-Labs/nalgebra
Simplify Deserialize bound
This commit is contained in:
parent
bfaf29393c
commit
e2c33b48ac
@ -320,7 +320,7 @@ struct CooMatrixDeserializationData<T> {
|
||||
#[cfg(feature = "serde-serialize")]
|
||||
impl<'de, T> Deserialize<'de> for CooMatrix<T>
|
||||
where
|
||||
T: for<'de2> Deserialize<'de2>,
|
||||
T: Deserialize<'de>,
|
||||
{
|
||||
fn deserialize<D>(deserializer: D) -> Result<CooMatrix<T>, D::Error>
|
||||
where
|
||||
|
@ -565,7 +565,7 @@ struct CscMatrixDeserializationData<T> {
|
||||
#[cfg(feature = "serde-serialize")]
|
||||
impl<'de, T> Deserialize<'de> for CscMatrix<T>
|
||||
where
|
||||
T: for<'de2> Deserialize<'de2>,
|
||||
T: Deserialize<'de>,
|
||||
{
|
||||
fn deserialize<D>(deserializer: D) -> Result<CscMatrix<T>, D::Error>
|
||||
where
|
||||
|
@ -636,7 +636,7 @@ struct CsrMatrixDeserializationData<T> {
|
||||
#[cfg(feature = "serde-serialize")]
|
||||
impl<'de, T> Deserialize<'de> for CsrMatrix<T>
|
||||
where
|
||||
T: for<'de2> Deserialize<'de2>,
|
||||
T: Deserialize<'de>,
|
||||
{
|
||||
fn deserialize<D>(deserializer: D) -> Result<CsrMatrix<T>, D::Error>
|
||||
where
|
||||
|
Loading…
Reference in New Issue
Block a user