get rid of clippy-related allows

This commit is contained in:
2025-04-18 04:44:11 +01:00
parent 0de79769d2
commit 668a6eb38b
6 changed files with 0 additions and 8 deletions
-2
View File
@@ -1,5 +1,3 @@
#![allow(clippy::cast_possible_truncation)]
use crate::util::{self, consts::game::WINDOW_TITLE}; use crate::util::{self, consts::game::WINDOW_TITLE};
use std::time::{Duration, Instant}; use std::time::{Duration, Instant};
use windows::Win32::UI::Input::KeyboardAndMouse::{ use windows::Win32::UI::Input::KeyboardAndMouse::{
-2
View File
@@ -1,5 +1,3 @@
#![allow(clippy::zombie_processes)]
use crate::util::consts::game::{EXE_ENHANCED, EXE_LEGACY}; use crate::util::consts::game::{EXE_ENHANCED, EXE_LEGACY};
use std::{os::windows::process::CommandExt, path::Path, process::Command}; use std::{os::windows::process::CommandExt, path::Path, process::Command};
use sysinfo::System; use sysinfo::System;
-1
View File
@@ -30,7 +30,6 @@ pub enum Stage {
About, About,
} }
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Default)] #[derive(Debug, Default)]
pub struct Flags { pub struct Flags {
pub elevated: bool, pub elevated: bool,
-1
View File
@@ -21,7 +21,6 @@ fn panic_hook(panic_info: &std::panic::PanicHookInfo<'_>) {
file.write_all(message.as_bytes()).unwrap(); file.write_all(message.as_bytes()).unwrap();
} }
#[allow(clippy::unnecessary_wraps)]
fn app_creator( fn app_creator(
cc: &eframe::CreationContext<'_>, cc: &eframe::CreationContext<'_>,
) -> Result<Box<dyn eframe::App>, Box<dyn std::error::Error + Send + Sync>> { ) -> Result<Box<dyn eframe::App>, Box<dyn std::error::Error + Send + Sync>> {
-1
View File
@@ -2,7 +2,6 @@ use serde::{Deserialize, Serialize};
use std::fmt::Display; use std::fmt::Display;
use strum::EnumIter; use strum::EnumIter;
#[allow(clippy::enum_variant_names)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize, EnumIter)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize, EnumIter)]
pub enum Theme { pub enum Theme {
CatppuccinLatte, CatppuccinLatte,
-1
View File
@@ -31,7 +31,6 @@ pub fn is_cursor_visible() -> bool {
ci.flags == CURSOR_SHOWING ci.flags == CURSOR_SHOWING
} }
#[allow(clippy::cast_sign_loss)]
pub fn is_window_focused(target_title: &str) -> bool { pub fn is_window_focused(target_title: &str) -> bool {
let mut buffer = [0; 512]; let mut buffer = [0; 512];
unsafe { unsafe {