fixed warnings

This commit is contained in:
dani 2023-07-27 05:15:27 +00:00
parent 4d1ab31451
commit feb4a86594
3 changed files with 2 additions and 4 deletions

View File

@ -9,7 +9,7 @@ fn init(gsa: &mut Gsa) -> Game {
Game {} Game {}
} }
fn update(game: &mut Game, gsa: &mut Gsa) { fn update(_game: &mut Game, gsa: &mut Gsa) {
gsa.sprites[0].pos += gsa.input_dir(); gsa.sprites[0].pos += gsa.input_dir();
} }

View File

@ -1,7 +1,6 @@
use clap::{crate_name, crate_version, Parser, Subcommand}; use clap::{crate_name, crate_version, Parser, Subcommand};
use dunce::canonicalize; use dunce::canonicalize;
use path_slash::PathExt; use path_slash::PathExt;
use std::env::{current_dir, set_current_dir};
use std::fs; use std::fs;
use std::fs::{write, OpenOptions}; use std::fs::{write, OpenOptions};
use std::io::Write; use std::io::Write;

View File

@ -2,8 +2,7 @@ use crate::buttons::{button_from_gilrs, button_from_scancode};
use crate::gsa_render_to_screen::{render_to_screen, render_to_window}; use crate::gsa_render_to_screen::{render_to_screen, render_to_window};
use crate::tileset::load_tileset; use crate::tileset::load_tileset;
use crate::{ use crate::{
Buttons, Gsa, Sprite, FONT_BOLD, MAX_BACKGROUNDS, MAX_SPRITES, SCREEN_HEIGHT, SCREEN_WIDTH, Buttons, Gsa, Sprite, FONT_BOLD, MAX_SPRITES, SCREEN_HEIGHT, SCREEN_WIDTH, TRANSPARENT,
TRANSPARENT,
}; };
use clap::crate_version; use clap::crate_version;
use gilrs::EventType; use gilrs::EventType;