From 69702cc403b96fa69ee00c535e7708d81d25de56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20=C3=96NCEL?= Date: Wed, 3 Jul 2024 00:53:43 +0300 Subject: [PATCH] fix compilation warnings about removed lints --- src/main.rs | 3 --- src/minecraft_launcher_launcher.rs | 2 -- 2 files changed, 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6a7f0d7..8a0914d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,10 +2,8 @@ // errors/smells https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html #![warn(absolute_paths_not_starting_with_crate)] -#![warn(box_pointers)] #![warn(elided_lifetimes_in_paths)] #![warn(explicit_outlives_requirements)] -#![feature(c_unwind)] #![warn(ffi_unwind_calls)] #![feature(strict_provenance)] #![warn(fuzzy_provenance_casts)] @@ -22,7 +20,6 @@ #![feature(non_exhaustive_omitted_patterns_lint)] #![warn(non_exhaustive_omitted_patterns)] #![warn(noop_method_call)] -#![warn(pointer_structural_match)] #![warn(rust_2021_incompatible_closure_captures)] #![warn(rust_2021_incompatible_or_patterns)] #![warn(rust_2021_prefixes_incompatible_syntax)] diff --git a/src/minecraft_launcher_launcher.rs b/src/minecraft_launcher_launcher.rs index c75bc20..a806034 100644 --- a/src/minecraft_launcher_launcher.rs +++ b/src/minecraft_launcher_launcher.rs @@ -252,7 +252,6 @@ fn find_launcher_processes( match root_result { Ok(root) => { - #[allow(box_pointers)] for launcher_process in sys.processes_by_name( "minecraft-launc", /* Not a typo, process names are limited * to 15 @@ -502,7 +501,6 @@ fn launch_launcher() { #[inline] fn escalate_if_needed() -> bool { - #[allow(box_pointers)] if let Err(e) = sudo::escalate_if_needed() { notify_error(&format!("error while trying to escalate to root permissions automatically: {e}"));