1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

clippy fixes

This commit is contained in:
Robin Appelman 2025-08-07 22:45:59 +02:00
commit f104bad12f
4 changed files with 411 additions and 407 deletions

File diff suppressed because it is too large Load diff

View file

@ -14,8 +14,7 @@ pub fn handle_player_entity(
let player = state.get_or_create_player(entity.entity_index);
const OUTER: SendPropIdentifier = SendPropIdentifier::new("DT_AttributeContainer", "m_hOuter");
const OUTER2: SendPropIdentifier =
SendPropIdentifier::new("DT_AttributeManager", "m_hOuter");
const OUTER2: SendPropIdentifier = SendPropIdentifier::new("DT_AttributeManager", "m_hOuter");
const HEALTH_PROP: SendPropIdentifier = SendPropIdentifier::new("DT_BasePlayer", "m_iHealth");
const MAX_HEALTH_PROP: SendPropIdentifier =

View file

@ -44,7 +44,12 @@ pub fn handle_medigun_entity(
.and_then(|self_handle| state.get_player_by_weapon_handle(self_handle));
if let Some(medic) = medic {
if let PlayerClassData::Medic { target, last_target, .. } = &mut medic.class_data {
if let PlayerClassData::Medic {
target,
last_target,
..
} = &mut medic.class_data
{
*target = target_id;
if target_id.is_some() {
*last_target = target_id;