From 02c39f01dca6755cf343baf57d61fb3e43084db3 Mon Sep 17 00:00:00 2001 From: Sofia Date: Sat, 25 Jul 2026 21:20:59 +0300 Subject: [PATCH] Fix warnings --- rust/src/game_manager.rs | 1 - rust/src/game_settings.rs | 3 +-- rust/src/player/weapon.rs | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/rust/src/game_manager.rs b/rust/src/game_manager.rs index fd10ebd..2522285 100644 --- a/rust/src/game_manager.rs +++ b/rust/src/game_manager.rs @@ -210,7 +210,6 @@ pub struct Game { pub current_map: Option>, pub world_ball: Option>, - since_last_sync: f64, pub goals: HashMap, diff --git a/rust/src/game_settings.rs b/rust/src/game_settings.rs index c51e22d..f4ad595 100644 --- a/rust/src/game_settings.rs +++ b/rust/src/game_settings.rs @@ -1,7 +1,6 @@ use std::{ - collections::VecDeque, net::SocketAddr, - time::{Duration, Instant, SystemTime, UNIX_EPOCH}, + time::{Duration, SystemTime, UNIX_EPOCH}, }; use godot::{ diff --git a/rust/src/player/weapon.rs b/rust/src/player/weapon.rs index 2222665..f0e1ef1 100644 --- a/rust/src/player/weapon.rs +++ b/rust/src/player/weapon.rs @@ -7,9 +7,9 @@ use godot::{ use serde::{Deserialize, Serialize}; use crate::{ - game_manager::{Game, GameOption}, + game_manager::Game, net::util::{cast_ray, shotgun_ray}, - player::{DamageSource, IPlayer, ball::Ball, shootable::Shootable}, + player::{DamageSource, shootable::Shootable}, }; pub trait Weapon {