Do not require T: (De)Serialize for OPoint impl

The bounds recently got a little too strict by accident.
This commit is contained in:
Andreas Longva 2021-07-26 17:57:21 +02:00
parent 305f39faf8
commit de540aa7ff
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ where
}
#[cfg(feature = "serde-serialize-no-std")]
impl<T: Scalar + Serialize, D: DimName> Serialize for OPoint<T, D>
impl<T: Scalar, D: DimName> Serialize for OPoint<T, D>
where
DefaultAllocator: Allocator<T, D>,
<DefaultAllocator as Allocator<T, D>>::Buffer: Serialize,
@ -96,7 +96,7 @@ where
}
#[cfg(feature = "serde-serialize-no-std")]
impl<'a, T: Scalar + Deserialize<'a>, D: DimName> Deserialize<'a> for OPoint<T, D>
impl<'a, T: Scalar, D: DimName> Deserialize<'a> for OPoint<T, D>
where
DefaultAllocator: Allocator<T, D>,
<DefaultAllocator as Allocator<T, D>>::Buffer: Deserialize<'a>,