diff options
| author | Sébastien Crozet <sebcrozet@dimforge.com> | 2024-06-09 11:12:31 +0200 |
|---|---|---|
| committer | Sébastien Crozet <sebastien@crozet.re> | 2024-06-09 12:09:58 +0200 |
| commit | ad960bf2458bd907942b1f236438f42f3194a6f6 (patch) | |
| tree | edffab69df8c40a2f1767baed63c3c2545cf1eeb /src/dynamics | |
| parent | edaa36ac7e702f419faab4ff1b9af858fc84177f (diff) | |
| download | rapier-ad960bf2458bd907942b1f236438f42f3194a6f6.tar.gz rapier-ad960bf2458bd907942b1f236438f42f3194a6f6.tar.bz2 rapier-ad960bf2458bd907942b1f236438f42f3194a6f6.zip | |
chore: clippy fixes
Diffstat (limited to 'src/dynamics')
| -rw-r--r-- | src/dynamics/joint/generic_joint.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dynamics/joint/generic_joint.rs b/src/dynamics/joint/generic_joint.rs index 2651592..154c439 100644 --- a/src/dynamics/joint/generic_joint.rs +++ b/src/dynamics/joint/generic_joint.rs @@ -524,7 +524,7 @@ macro_rules! joint_conversion_methods( if self.locked_axes == $axes { // SAFETY: this is OK because the target joint type is // a `repr(transparent)` newtype of `Joint`. - Some(unsafe { std::mem::transmute(self) }) + Some(unsafe { std::mem::transmute::<&Self, &$Joint>(self) }) } else { None } @@ -536,7 +536,7 @@ macro_rules! joint_conversion_methods( if self.locked_axes == $axes { // SAFETY: this is OK because the target joint type is // a `repr(transparent)` newtype of `Joint`. - Some(unsafe { std::mem::transmute(self) }) + Some(unsafe { std::mem::transmute::<&mut Self, &mut $Joint>(self) }) } else { None } |
