Skip to content
Snippets Groups Projects
Verified Commit 189a45ae authored by Vincent Lafeychine's avatar Vincent Lafeychine
Browse files

clippy: Fix option_env_unwrap

parent bc76e59c
Branches
Tags
1 merge request!33Fix most of clippy::complexity and clippy::correctness
...@@ -27,7 +27,6 @@ rustflags = [ ...@@ -27,7 +27,6 @@ rustflags = [
"-Aclippy::useless_format", "-Aclippy::useless_format",
# clippy::correctness # clippy::correctness
"-Aclippy::option_env_unwrap",
"-Aclippy::redundant_locals", "-Aclippy::redundant_locals",
"-Aclippy::unused_io_amount", "-Aclippy::unused_io_amount",
......
...@@ -19,6 +19,7 @@ pub fn find_compiled_executable(name: &str) -> PathBuf { ...@@ -19,6 +19,7 @@ pub fn find_compiled_executable(name: &str) -> PathBuf {
); );
} }
#[allow(clippy::option_env_unwrap)]
pub fn find_sysroot() -> String { pub fn find_sysroot() -> String {
// Taken from https://github.com/Manishearth/rust-clippy/pull/911. // Taken from https://github.com/Manishearth/rust-clippy/pull/911.
let home = option_env!("RUSTUP_HOME").or(option_env!("MULTIRUST_HOME")); let home = option_env!("RUSTUP_HOME").or(option_env!("MULTIRUST_HOME"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment