fix lints
Some checks failed
Rust / rustfmt (pull_request) Successful in 20s
Rust / clippy (pull_request) Failing after 1m1s
Rust / build (pull_request) Successful in 2m9s

This commit is contained in:
Dominic 2024-07-06 22:14:48 +02:00
parent 15c6ddd8d5
commit 9231a8b37e
Signed by: msrd0
GPG key ID: AAF7C8430CA3345D
5 changed files with 10 additions and 7 deletions

View file

@ -1,4 +1,4 @@
use comfy::*;
use comfy::{draw_circle, draw_line, error, vec2, Vec2, BLUE};
#[derive(Debug)]
pub struct Grid {

View file

@ -10,7 +10,7 @@ pub struct HouseState {
player: Player
}
pub fn draw(state: &crate::State, _engine: &comfy::EngineContext) {
pub fn draw(state: &crate::State, _engine: &comfy::EngineContext<'_>) {
//Draw Grid
state.house.grid.draw();
@ -18,6 +18,6 @@ pub fn draw(state: &crate::State, _engine: &comfy::EngineContext) {
state.house.player.draw();
}
pub fn update(state: &mut crate::State, _engine: &mut comfy::EngineContext) {
pub fn update(state: &mut crate::State, _engine: &mut comfy::EngineContext<'_>) {
state.house.player.update(&state.house.grid);
}

View file

@ -1,6 +1,6 @@
use comfy::*;
use super::Grid;
use comfy::{delta, draw_circle, is_key_down, vec2, KeyCode, Vec2, RED};
use std::collections::HashSet;
#[derive(Debug)]
pub struct Player {

View file

@ -1,6 +1,6 @@
use comfy::{
draw_circle, draw_rect_outline, draw_sprite, main_camera_mut, texture_id, vec2,
EngineContext, IVec2, Vec2, GREEN, RED, WHITE
draw_rect_outline, draw_sprite, main_camera_mut, EngineContext, IVec2, Vec2, RED,
WHITE
};
use crate::game::ZLayer;

View file

@ -1,3 +1,6 @@
// TODO remove this
#![allow(dead_code)]
use crate::assets::ASSETS;
use comfy::{IVec2, TextureHandle, UVec2};
use log::info;