Skip to content

Commit

Permalink
fix compilation warnings about removed lints
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDGOfficial committed Jul 2, 2024
1 parent e3b92bb commit 69702cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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)]
Expand Down
2 changes: 0 additions & 2 deletions src/minecraft_launcher_launcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}"));

Expand Down

0 comments on commit 69702cc

Please sign in to comment.