Fix some warnings

This commit is contained in:
Sofia 2026-07-22 04:32:01 +03:00
parent 4f9e24f5ab
commit 87c09dd98b
5 changed files with 4 additions and 5 deletions

View File

@ -20,7 +20,6 @@ use crate::{
},
util::{NetVector3, cast_ray},
},
player_hand_remover::PlayerHandRemover,
soldier_mesh::SoldierMesh,
ui::cli::CommandLinePanel,
weapon::{BallWeapon, Raygun, Weapon, WeaponType},

View File

@ -13,7 +13,7 @@ pub struct PlayerHandRemover {
#[godot_api]
impl ISkeletonModifier3D for PlayerHandRemover {
fn process_modification_with_delta(&mut self, delta: f64) {
fn process_modification_with_delta(&mut self, _delta: f64) {
if self.active {
if let Some(mut skeleton) = self.base_mut().get_skeleton() {
let uar = skeleton.find_bone("UA.R");

View File

@ -1,4 +1,4 @@
use godot::{meta::Element, prelude::*};
use godot::prelude::*;
#[derive(GodotClass)]
#[class(base=Resource, init, tool)]

View File

@ -1,5 +1,5 @@
use godot::{
classes::{GridContainer, IGridContainer, Label, OptionButton, TextEdit},
classes::{GridContainer, IGridContainer, Label, OptionButton},
prelude::*,
};

View File

@ -142,7 +142,7 @@ pub struct BallWeapon {
#[godot_dyn]
impl Weapon for BallWeapon {
fn shoot(&mut self, player_rid: Rid, player_id: u16, to: Vector3, deal_damage: bool) {}
fn shoot(&mut self, _: Rid, _: u16, _: Vector3, _: bool) {}
fn get_type(&self) -> WeaponType {
WeaponType::Ball