From 2ce6811e2ca9632e07cc34a78d07958a5d1633eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Crozet=20S=C3=A9bastien?= Date: Sat, 10 Jul 2021 11:24:23 +0200 Subject: [PATCH] Fix compilation when enabling the bytemuck feature. --- src/geometry/point.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/geometry/point.rs b/src/geometry/point.rs index e65bc5356..d4d9dbfcc 100644 --- a/src/geometry/point.rs +++ b/src/geometry/point.rs @@ -67,7 +67,7 @@ where #[cfg(feature = "bytemuck")] unsafe impl bytemuck::Zeroable for OPoint where - SVector: bytemuck::Zeroable, + OVector: bytemuck::Zeroable, DefaultAllocator: Allocator, { } @@ -76,7 +76,7 @@ where unsafe impl bytemuck::Pod for OPoint where T: Copy, - SVector: bytemuck::Pod, + OVector: bytemuck::Pod, DefaultAllocator: Allocator, { } @@ -85,7 +85,7 @@ where impl Serialize for OPoint where DefaultAllocator: Allocator, - >::Buffer: Serialize + >::Buffer: Serialize, { fn serialize(&self, serializer: S) -> Result where @@ -99,7 +99,7 @@ where impl<'a, T: Scalar + Deserialize<'a>, D: DimName> Deserialize<'a> for OPoint where DefaultAllocator: Allocator, - >::Buffer: Deserialize<'a> + >::Buffer: Deserialize<'a>, { fn deserialize(deserializer: Des) -> Result where @@ -115,7 +115,7 @@ where impl Abomonation for OPoint where T: Scalar, - SVector: Abomonation, + OVector: Abomonation, DefaultAllocator: Allocator, { unsafe fn entomb(&self, writer: &mut W) -> IOResult<()> {