From 216de579c18f3f03cbcdbef6e4768b07cd2980af Mon Sep 17 00:00:00 2001 From: Sofia Date: Tue, 28 Jul 2026 20:02:44 +0300 Subject: [PATCH] Fix warnings --- rust/src/game_manager.rs | 8 ++------ rust/src/ui/main_menu.rs | 10 ++-------- rust/src/ui/replay_finished_screen.rs | 2 +- rust/src/ui/settings.rs | 6 +++--- 4 files changed, 8 insertions(+), 18 deletions(-) diff --git a/rust/src/game_manager.rs b/rust/src/game_manager.rs index 02ce281..c4c5733 100644 --- a/rust/src/game_manager.rs +++ b/rust/src/game_manager.rs @@ -24,12 +24,8 @@ use crate::{ }, pickup::PickupKind, player::{ - DamageSource, IPlayer, NetTransform, - ball::Ball, - local_player::LocalPlayer, - remote_player::RemotePlayer, - telegrenade::{self, Telegrenade}, - weapon::WeaponType, + DamageSource, IPlayer, NetTransform, ball::Ball, local_player::LocalPlayer, + remote_player::RemotePlayer, telegrenade::Telegrenade, weapon::WeaponType, }, replay::{ReplayEvent, ReplayPlayback, ReplayRecorder}, team_resource::TeamResource, diff --git a/rust/src/ui/main_menu.rs b/rust/src/ui/main_menu.rs index 013399c..c18c9f4 100644 --- a/rust/src/ui/main_menu.rs +++ b/rust/src/ui/main_menu.rs @@ -1,21 +1,15 @@ -use std::io::Cursor; - use godot::{ - classes::{ - Button, Camera3D, FileAccess, FileDialog, Label, LineEdit, OptionButton, Panel, SpinBox, - file_access::ModeFlags, - }, + classes::{Button, Camera3D, FileDialog, Label, LineEdit, OptionButton, Panel, SpinBox}, prelude::*, register::property::SimpleVar, }; use crate::{ bgm::{Music, MusicManager}, - game_manager::GameManager, game_settings::{GameSettingsManager, RecentServer}, net::network_manager::NetworkManager, popup_queue::{Popup, PopupQueue}, - replay::{Replay, StandaloneReplayManager}, + replay::StandaloneReplayManager, ui::credits::CreditsMenu, }; diff --git a/rust/src/ui/replay_finished_screen.rs b/rust/src/ui/replay_finished_screen.rs index ac5264f..e390a97 100644 --- a/rust/src/ui/replay_finished_screen.rs +++ b/rust/src/ui/replay_finished_screen.rs @@ -1,5 +1,5 @@ use godot::{ - classes::{Button, FileDialog, HBoxContainer, IPanel, Label, Panel}, + classes::{Button, HBoxContainer, IPanel, Label, Panel}, prelude::*, }; diff --git a/rust/src/ui/settings.rs b/rust/src/ui/settings.rs index 21a7d4e..b35c5bd 100644 --- a/rust/src/ui/settings.rs +++ b/rust/src/ui/settings.rs @@ -2,9 +2,9 @@ use std::collections::HashMap; use godot::{ classes::{ - Button, Control, GridContainer, IPanelContainer, InputEvent, InputEventKey, - InputEventMouseButton, InputMap, Label, LineEdit, PanelContainer, TextureButton, - control::{FocusBehaviorRecursive, FocusMode, SizeFlags}, + Button, Control, GridContainer, IPanelContainer, InputEvent, Label, LineEdit, + PanelContainer, + control::{FocusBehaviorRecursive, SizeFlags}, }, prelude::*, };