Skip to content

Commit

Permalink
chore: clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Jan 27, 2024
1 parent 7cb8631 commit 8b6f690
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/dynamics/spring_joint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,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
}
}

Expand Down Expand Up @@ -142,8 +142,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()
}
}

0 comments on commit 8b6f690

Please sign in to comment.