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
No related branches found
No related tags found
1 merge request!33Fix most of clippy::complexity and clippy::correctness
......@@ -27,7 +27,6 @@ rustflags = [
"-Aclippy::useless_format",
# clippy::correctness
"-Aclippy::option_env_unwrap",
"-Aclippy::redundant_locals",
"-Aclippy::unused_io_amount",
......
......@@ -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"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment