From fef1b7ead845ff0df629d4800575c8e23cbf083d Mon Sep 17 00:00:00 2001 From: jedjoud10 Date: Sun, 16 Jul 2023 23:37:51 -0400 Subject: [PATCH] Hotfix fix compilation with ``bytemuck`` feature --- src/mat.rs | 5 ++--- src/quaternion.rs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mat.rs b/src/mat.rs index 67e0565..a27c87f 100644 --- a/src/mat.rs +++ b/src/mat.rs @@ -1437,7 +1437,7 @@ macro_rules! mat_impl_mat { } #[cfg(feature = "bytemuck")] - unsafe impl bytemuck::Zeroable for $Mat where T: bytemuck::Zeroable, $Vec: bytemuck::Zeroable { + unsafe impl bytemuck::Zeroable for $Mat where T: bytemuck::Zeroable, $Vec: bytemuck::Zeroable { fn zeroed() -> Self { Self { $lines: $CVec { @@ -1448,10 +1448,9 @@ macro_rules! mat_impl_mat { } #[cfg(feature = "bytemuck")] - unsafe impl bytemuck::Pod for Mat4 where T: bytemuck::Pod { + unsafe impl bytemuck::Pod for $Mat where T: bytemuck::Pod { // Nothing here } - }; } diff --git a/src/quaternion.rs b/src/quaternion.rs index 34cfdc0..8d077fa 100644 --- a/src/quaternion.rs +++ b/src/quaternion.rs @@ -750,7 +750,7 @@ macro_rules! quaternion_complete_mod { } #[cfg(feature = "bytemuck")] - unsafe impl bytemuck::Pod for Mat4 where T: bytemuck::Pod { + unsafe impl bytemuck::Pod for Quaternion where T: bytemuck::Pod { // Nothing here }