chore: update to nalgebra 0.33 and parry 0.16 (#664)

This commit is contained in:
Sébastien Crozet
2024-06-23 22:57:51 +02:00
committed by GitHub
parent 3e8650f3a7
commit 3004a7d38d
21 changed files with 82 additions and 65 deletions

View File

@@ -80,6 +80,7 @@ use bitflags::bitflags;
bitflags! {
/// A bit mask identifying groups for interaction.
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash)]
pub struct Group: u32 {
/// The group n°1.
const GROUP_1 = 1 << 0;
@@ -156,7 +157,7 @@ bitflags! {
impl From<u32> for Group {
#[inline]
fn from(val: u32) -> Self {
unsafe { Self::from_bits_unchecked(val) }
Self::from_bits_retain(val)
}
}