Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Nov 27, 2023
1 parent 06cc883 commit 72cde91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/geopos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl GeoPos {
* @param zoom Zoom level of the OSM tile-name(x/y) system
* @return coordinate in tile coordinates
*/
pub fn to_tile_coordinates(&self, zoom: u8) -> Vec2 {
pub fn to_tile_coordinates(self, zoom: u8) -> Vec2 {
let pow_zoom = 2_u32.pow(zoom.into()) as f32;

// return
Expand Down
6 changes: 1 addition & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,7 @@ fn setup(
commands.spawn((
TileMap::new(&mut meshes),
SpatialBundle {
transform: Transform::from_xyz(
-x as f32 * TileMap::TILE_SIZE,
0.,
-y as f32 * TileMap::TILE_SIZE,
),
transform: Transform::from_xyz(-x * TileMap::TILE_SIZE, 0., -y * TileMap::TILE_SIZE),
..default()
},
));
Expand Down

0 comments on commit 72cde91

Please sign in to comment.