aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics
diff options
context:
space:
mode:
authorSébastien Crozet <sebcrozet@dimforge.com>2024-06-09 11:12:31 +0200
committerSébastien Crozet <sebastien@crozet.re>2024-06-09 12:09:58 +0200
commitad960bf2458bd907942b1f236438f42f3194a6f6 (patch)
treeedffab69df8c40a2f1767baed63c3c2545cf1eeb /src/dynamics
parentedaa36ac7e702f419faab4ff1b9af858fc84177f (diff)
downloadrapier-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.rs4
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
}