From 189a45ae19553e37a2af87465c860582e7ee998e Mon Sep 17 00:00:00 2001
From: Vincent Lafeychine <vincent.lafeychine@proton.me>
Date: Sun, 14 Apr 2024 19:37:05 +0200
Subject: [PATCH] clippy: Fix option_env_unwrap

---
 rr_frontend/.cargo/config.toml      | 1 -
 rr_frontend/analysis/tests/utils.rs | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/rr_frontend/.cargo/config.toml b/rr_frontend/.cargo/config.toml
index f282d771..3b3b0054 100644
--- a/rr_frontend/.cargo/config.toml
+++ b/rr_frontend/.cargo/config.toml
@@ -27,7 +27,6 @@ rustflags = [
     "-Aclippy::useless_format",
 
     # clippy::correctness
-    "-Aclippy::option_env_unwrap",
     "-Aclippy::redundant_locals",
     "-Aclippy::unused_io_amount",
 
diff --git a/rr_frontend/analysis/tests/utils.rs b/rr_frontend/analysis/tests/utils.rs
index 571d2ba0..16c25cab 100644
--- a/rr_frontend/analysis/tests/utils.rs
+++ b/rr_frontend/analysis/tests/utils.rs
@@ -19,6 +19,7 @@ pub fn find_compiled_executable(name: &str) -> PathBuf {
     );
 }
 
+#[allow(clippy::option_env_unwrap)]
 pub fn find_sysroot() -> String {
     // Taken from https://github.com/Manishearth/rust-clippy/pull/911.
     let home = option_env!("RUSTUP_HOME").or(option_env!("MULTIRUST_HOME"));
-- 
GitLab