Skip to content

Commit

Permalink
Fixes for #92
Browse files Browse the repository at this point in the history
  • Loading branch information
yoanlcq committed Jul 17, 2023
1 parent b74fd9c commit 1f4515a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/mat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ macro_rules! mat_impl_mat {
}

#[cfg(feature = "bytemuck")]
unsafe impl<T> bytemuck::Zeroable for $Mat<T> where T: bytemuck::Zeroable, $Vec: bytemuck::Zeroable {
unsafe impl<T> bytemuck::Zeroable for $Mat<T> where T: bytemuck::Zeroable, $Vec<T>: bytemuck::Zeroable {
fn zeroed() -> Self {
Self {
$lines: $CVec {
Expand All @@ -1448,7 +1448,7 @@ macro_rules! mat_impl_mat {
}

#[cfg(feature = "bytemuck")]
unsafe impl<T> bytemuck::Pod for Mat4<T> where T: bytemuck::Pod {
unsafe impl<T> bytemuck::Pod for $Mat<T> where T: bytemuck::Pod {
// Nothing here
}

Expand Down
6 changes: 0 additions & 6 deletions src/quaternion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -748,12 +748,6 @@ macro_rules! quaternion_complete_mod {
}
}
}

#[cfg(feature = "bytemuck")]
unsafe impl<T> bytemuck::Pod for Mat4<T> where T: bytemuck::Pod {
// Nothing here
}

};
}

Expand Down

0 comments on commit 1f4515a

Please sign in to comment.