Skip to content

Commit

Permalink
Fixed clippy findings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthmark committed Apr 16, 2022
1 parent 84acc1c commit d3002d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/level/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub fn initial_events_on_load(
mut axis_changed: EventWriter<AxisChanged>,
) {
position_changed.send(PositionChanged {
position: maze.pos().into(),
position: maze.pos(),
});
axis_changed.send(AxisChanged { axis: maze.axis() });
}
Expand Down
2 changes: 1 addition & 1 deletion src/level/maze_level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl<const DIMS: usize> MazeView for MazeImpl<DIMS> {
return None;
}
}
return self.maze.can_move(&pos, dim);
self.maze.can_move(&pos, dim)
}

fn wall_in_current(&self, position: [u8; 2], axis: Axis) -> bool {
Expand Down
3 changes: 1 addition & 2 deletions src/level/maze_ui_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ pub fn maze_axis_label_background_updater(
Color::WHITE
} else {
Color::GRAY
}
.into();
};
}
};
for _ in position_changed.iter() {
Expand Down

0 comments on commit d3002d5

Please sign in to comment.