Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Jul 20, 2024
1 parent 2464675 commit cffb49d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ pub struct Coords {
pub layer: Option<u8>,
}

impl Into<Coords> for Vec2 {
fn into(self) -> Coords {
impl From<Vec2> for Coords {
fn from(value: Vec2) -> Self {
Coords {
pos: self,
pos: value,
layer: None,
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/merger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ impl Mesh {
self.layers
.iter_mut()
.map(|layer| layer.merge_polygons())
.find(|m| *m)
.is_some()
.any(|m| m)
}
}

Expand Down

0 comments on commit cffb49d

Please sign in to comment.