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 std::time::{Duration, Instant};
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 std::{os::windows::process::CommandExt, path::Path, process::Command};
use sysinfo::System;
-1
View File
@@ -30,7 +30,6 @@ pub enum Stage {
About,
}
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, Default)]
pub struct Flags {
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();
}
#[allow(clippy::unnecessary_wraps)]
fn app_creator(
cc: &eframe::CreationContext<'_>,
) -> 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 strum::EnumIter;
#[allow(clippy::enum_variant_names)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize, EnumIter)]
pub enum Theme {
CatppuccinLatte,
-1
View File
@@ -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 {