diff options
Diffstat (limited to 'src/dynamics/joint/fixed_joint.rs')
| -rw-r--r-- | src/dynamics/joint/fixed_joint.rs | 12 |
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() } } |
