Skip to content

Commit

Permalink
Fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Jul 21, 2024
1 parent 8c646ac commit f8d55d1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/util/texture_atlas_grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ pub struct TextureAtlasGrid {
offset: Option<UVec2>,
}

impl Into<TextureAtlasLayout> for &TextureAtlasGrid {
fn into(self) -> TextureAtlasLayout {
TextureAtlasLayout::from_grid(
self.tile_size,
self.columns,
self.rows,
self.padding,
self.offset,
impl From<&TextureAtlasGrid> for TextureAtlasLayout {
fn from(value: &TextureAtlasGrid) -> Self {
Self::from_grid(
value.tile_size,
value.columns,
value.rows,
value.padding,
value.offset,
)
}
}

0 comments on commit f8d55d1

Please sign in to comment.