Fix warnings

This commit is contained in:
Sofia 2026-07-29 20:20:00 +03:00
parent eb6ea6caf3
commit f45f15b3bf
5 changed files with 7 additions and 15 deletions

View File

@ -11,10 +11,7 @@ use crate::{
bgm::{Music, MusicManager},
chat::{Chat, ChatMessage},
game::{
commands::{
KillCommand, ListPlayersCommand, RespawnBallCommand, register_commands,
unregister_commands,
},
commands::{register_commands, unregister_commands},
opts::{GameOption, GameOptionValue, GameOptions},
},
map::Map,
@ -36,7 +33,7 @@ use crate::{
},
replay::{ReplayEvent, ReplayPlayback, ReplayRecorder},
team_resource::TeamResource,
ui::cli::{CliColor, Command, CommandLinePanel},
ui::cli::CommandLinePanel,
};
pub mod commands;

View File

@ -1,12 +1,9 @@
use std::{
net::SocketAddr,
time::{Duration, SystemTime, UNIX_EPOCH},
};
use std::time::{Duration, SystemTime, UNIX_EPOCH};
use godot::{
classes::{
AudioServer, DisplayServer, FileAccess, InputEvent, InputEventKey, InputEventMouseButton,
InputMap, display_server::WindowMode, file_access::ModeFlags, window::Mode,
InputMap, display_server::WindowMode, file_access::ModeFlags,
},
global::{Key, MouseButton},
prelude::*,

View File

@ -17,7 +17,7 @@ impl NetworkManager {
if let Some(peer) = &mut self.peer {
match peer {
PeerKind::Client(peer, addr) => match message {
PeerKind::Client(peer, _) => match message {
teanet::PeerMessage::NewConnection(connection) => {
cli.bind_mut().publish_message(
format!("Connected to: {}", connection.address),

View File

@ -362,9 +362,7 @@ impl INode for ReplayPlayback {
}
self.telegrenades.remove(player_id);
if let Some(map) = &mut self.current_map
&& let Some(player) = self.replay.players.get(player_id)
{
if let Some(map) = &mut self.current_map {
if let Some(telegrenade) = map.bind_mut().spawn_replay_telegrenade(
(*location).into(),
(*velocity).into(),

View File

@ -1,5 +1,5 @@
use godot::{
classes::{Control, IControl, InputEvent, Label, Slider},
classes::{Control, IControl, Label, Slider},
prelude::*,
};