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")]
|
#[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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user