From 58ec9f6567e90eebe800151dfef2f4191b4aa58b Mon Sep 17 00:00:00 2001 From: futile Date: Sun, 20 Apr 2025 08:01:41 +0100 Subject: [PATCH] clippy --- src/features/game_networking.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/features/game_networking.rs b/src/features/game_networking.rs index c88c775..9b68a57 100644 --- a/src/features/game_networking.rs +++ b/src/features/game_networking.rs @@ -51,7 +51,7 @@ pub struct GameNetworking { impl Default for GameNetworking { fn default() -> Self { Self { - blocked_status: GameNetworking::is_blocked().into(), + blocked_status: Self::is_blocked().into(), com_initialized: unsafe { CoInitializeEx(None, COINIT_MULTITHREADED) }.is_ok(), timer: Instant::now(), counting: false, @@ -96,7 +96,7 @@ impl GameNetworking { rules.Add(&rule).unwrap(); } } - self.blocked_status = GameNetworking::is_blocked().into(); + self.blocked_status = Self::is_blocked().into(); } pub fn unblock_all(&mut self) { @@ -105,7 +105,7 @@ impl GameNetworking { let rules = unsafe { policy.Rules().unwrap() }; unsafe { rules.Remove(&BSTR::from(FILTER_NAME_IN)).unwrap() }; unsafe { rules.Remove(&BSTR::from(FILTER_NAME_OUT)).unwrap() }; - self.blocked_status = GameNetworking::is_blocked().into(); + self.blocked_status = Self::is_blocked().into(); } fn is_blocked() -> bool {