aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics/joint/fixed_joint.rs
diff options
context:
space:
mode:
authorSébastien Crozet <sebcrozet@dimforge.com>2024-01-27 16:49:53 +0100
committerSébastien Crozet <sebastien@crozet.re>2024-01-27 17:13:08 +0100
commitda92e5c2837b27433286cf0dd9d887fd44dda254 (patch)
tree00428ce290288f5c64e53dee13d88ffdde4df0ca /src/dynamics/joint/fixed_joint.rs
parentaef873f20e7a1ee66b9d4c066884fa794048587b (diff)
downloadrapier-da92e5c2837b27433286cf0dd9d887fd44dda254.tar.gz
rapier-da92e5c2837b27433286cf0dd9d887fd44dda254.tar.bz2
rapier-da92e5c2837b27433286cf0dd9d887fd44dda254.zip
Fix clippy and enable clippy on CI
Diffstat (limited to 'src/dynamics/joint/fixed_joint.rs')
-rw-r--r--src/dynamics/joint/fixed_joint.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dynamics/joint/fixed_joint.rs b/src/dynamics/joint/fixed_joint.rs
index 75c8228..2bb2f64 100644
--- a/src/dynamics/joint/fixed_joint.rs
+++ b/src/dynamics/joint/fixed_joint.rs
@@ -84,9 +84,9 @@ impl FixedJoint {
}
}
-impl Into<GenericJoint> for FixedJoint {
- fn into(self) -> GenericJoint {
- self.data
+impl From<FixedJoint> for GenericJoint {
+ fn from(val: FixedJoint) -> GenericJoint {
+ val.data
}
}
@@ -143,8 +143,8 @@ impl FixedJointBuilder {
}
}
-impl Into<GenericJoint> for FixedJointBuilder {
- fn into(self) -> GenericJoint {
- self.0.into()
+impl From<FixedJointBuilder> for GenericJoint {
+ fn from(val: FixedJointBuilder) -> GenericJoint {
+ val.0.into()
}
}