Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Dec 12, 2023
1 parent 8c9d0c4 commit 50d5b97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ pub struct PlanetaryPosition {
pub pos: DVec3,
}

impl Into<DVec3> for PlanetaryPosition {
fn into(self) -> DVec3 {
self.pos
impl From<PlanetaryPosition> for DVec3 {
fn from(value: PlanetaryPosition) -> Self {
value.pos
}
}

Expand Down

0 comments on commit 50d5b97

Please sign in to comment.