From 668a6eb38bd6adb7fdd4b8aa133fd564bc51ba34 Mon Sep 17 00:00:00 2001 From: futile Date: Fri, 18 Apr 2025 04:44:11 +0100 Subject: [PATCH] get rid of clippy-related `allow`s --- src/features/anti_afk.rs | 2 -- src/features/game_networking.rs | 2 -- src/gui/app.rs | 1 - src/gui/run.rs | 1 - src/gui/settings.rs | 1 - src/util/win.rs | 1 - 6 files changed, 8 deletions(-) diff --git a/src/features/anti_afk.rs b/src/features/anti_afk.rs index 48e68f2..6607047 100644 --- a/src/features/anti_afk.rs +++ b/src/features/anti_afk.rs @@ -1,5 +1,3 @@ -#![allow(clippy::cast_possible_truncation)] - use crate::util::{self, consts::game::WINDOW_TITLE}; use std::time::{Duration, Instant}; use windows::Win32::UI::Input::KeyboardAndMouse::{ diff --git a/src/features/game_networking.rs b/src/features/game_networking.rs index 8edf740..49b9d65 100644 --- a/src/features/game_networking.rs +++ b/src/features/game_networking.rs @@ -1,5 +1,3 @@ -#![allow(clippy::zombie_processes)] - use crate::util::consts::game::{EXE_ENHANCED, EXE_LEGACY}; use std::{os::windows::process::CommandExt, path::Path, process::Command}; use sysinfo::System; diff --git a/src/gui/app.rs b/src/gui/app.rs index 1b51275..fa86aec 100644 --- a/src/gui/app.rs +++ b/src/gui/app.rs @@ -30,7 +30,6 @@ pub enum Stage { About, } -#[allow(clippy::struct_excessive_bools)] #[derive(Debug, Default)] pub struct Flags { pub elevated: bool, diff --git a/src/gui/run.rs b/src/gui/run.rs index 04c3ecc..afb7bf8 100644 --- a/src/gui/run.rs +++ b/src/gui/run.rs @@ -21,7 +21,6 @@ fn panic_hook(panic_info: &std::panic::PanicHookInfo<'_>) { file.write_all(message.as_bytes()).unwrap(); } -#[allow(clippy::unnecessary_wraps)] fn app_creator( cc: &eframe::CreationContext<'_>, ) -> Result, Box> { diff --git a/src/gui/settings.rs b/src/gui/settings.rs index 6b61920..543554b 100644 --- a/src/gui/settings.rs +++ b/src/gui/settings.rs @@ -2,7 +2,6 @@ use serde::{Deserialize, Serialize}; use std::fmt::Display; use strum::EnumIter; -#[allow(clippy::enum_variant_names)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize, EnumIter)] pub enum Theme { CatppuccinLatte, diff --git a/src/util/win.rs b/src/util/win.rs index c5d66c0..a61a628 100644 --- a/src/util/win.rs +++ b/src/util/win.rs @@ -31,7 +31,6 @@ pub fn is_cursor_visible() -> bool { ci.flags == CURSOR_SHOWING } -#[allow(clippy::cast_sign_loss)] pub fn is_window_focused(target_title: &str) -> bool { let mut buffer = [0; 512]; unsafe {