Skip to content

Commit

Permalink
fix / silence new clippy warnings
Browse files Browse the repository at this point in the history
nope, sorry - I hate inline format args
  • Loading branch information
sim82 committed Oct 28, 2022
1 parent 58efe33 commit 771473d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/hex/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl Hex {
// let col = self.q as f32 + (self.r - (self.r & 1)) as f32 * 0.5;
let col = (self.q + self.r) as f32 - (self.r & 1) as f32 * 0.5;
let row = self.r as f32 * 0.75;
Vec2::new(col as f32, row as f32)
Vec2::new(col, row)
}
pub fn from_odd_r(v: Vec2) -> Self {
let vx = v.x as i32;
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::uninlined_format_args)]
#![feature(exclusive_range_pattern)]
use bevy::{app::AppExit, prelude::*};
// use bevy_ecs_tilemap::{MapQuery, Tile};
Expand Down

0 comments on commit 771473d

Please sign in to comment.