From de540aa7ffdddc0dca3572e18f9536e3954f22db Mon Sep 17 00:00:00 2001 From: Andreas Longva Date: Mon, 26 Jul 2021 17:57:21 +0200 Subject: [PATCH] Do not require T: (De)Serialize for OPoint impl The bounds recently got a little too strict by accident. --- src/geometry/point.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/geometry/point.rs b/src/geometry/point.rs index faf4f48f..2893bcf9 100644 --- a/src/geometry/point.rs +++ b/src/geometry/point.rs @@ -82,7 +82,7 @@ where } #[cfg(feature = "serde-serialize-no-std")] -impl Serialize for OPoint +impl Serialize for OPoint where DefaultAllocator: Allocator, >::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 +impl<'a, T: Scalar, D: DimName> Deserialize<'a> for OPoint where DefaultAllocator: Allocator, >::Buffer: Deserialize<'a>,