From feb4a86594794171356a4c56ebe31e59f6e047f3 Mon Sep 17 00:00:00 2001 From: dani Date: Thu, 27 Jul 2023 05:15:27 +0000 Subject: [PATCH] fixed warnings --- examples/hello_world/main.rs | 2 +- src/main.rs | 1 - src/run.rs | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/hello_world/main.rs b/examples/hello_world/main.rs index 91c83e1..720d612 100644 --- a/examples/hello_world/main.rs +++ b/examples/hello_world/main.rs @@ -9,7 +9,7 @@ fn init(gsa: &mut Gsa) -> 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(); } diff --git a/src/main.rs b/src/main.rs index c145919..0a2a82b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,6 @@ use clap::{crate_name, crate_version, Parser, Subcommand}; use dunce::canonicalize; use path_slash::PathExt; -use std::env::{current_dir, set_current_dir}; use std::fs; use std::fs::{write, OpenOptions}; use std::io::Write; diff --git a/src/run.rs b/src/run.rs index 479005c..b5f353c 100644 --- a/src/run.rs +++ b/src/run.rs @@ -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::tileset::load_tileset; use crate::{ - Buttons, Gsa, Sprite, FONT_BOLD, MAX_BACKGROUNDS, MAX_SPRITES, SCREEN_HEIGHT, SCREEN_WIDTH, - TRANSPARENT, + Buttons, Gsa, Sprite, FONT_BOLD, MAX_SPRITES, SCREEN_HEIGHT, SCREEN_WIDTH, TRANSPARENT, }; use clap::crate_version; use gilrs::EventType;