diff options
Diffstat (limited to 'src/dynamics/joint/spring_joint.rs')
| -rw-r--r-- | src/dynamics/joint/spring_joint.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dynamics/joint/spring_joint.rs b/src/dynamics/joint/spring_joint.rs index d9a849a..f5cb5bd 100644 --- a/src/dynamics/joint/spring_joint.rs +++ b/src/dynamics/joint/spring_joint.rs @@ -94,9 +94,9 @@ impl SpringJoint { // } } -impl Into<GenericJoint> for SpringJoint { - fn into(self) -> GenericJoint { - self.data +impl From<SpringJoint> for GenericJoint { + fn from(val: SpringJoint) -> GenericJoint { + val.data } } @@ -165,8 +165,8 @@ impl SpringJointBuilder { } } -impl Into<GenericJoint> for SpringJointBuilder { - fn into(self) -> GenericJoint { - self.0.into() +impl From<SpringJointBuilder> for GenericJoint { + fn from(val: SpringJointBuilder) -> GenericJoint { + val.0.into() } } |
