Improved the compiler code with clippy
This commit is contained in:
parent
c67277301c
commit
3c5e88c7d1
4 changed files with 7 additions and 7 deletions
|
@ -50,7 +50,7 @@ fn detect_llvm_link() -> (&'static str, &'static str) {
|
|||
fn restore_library_path() {
|
||||
let key = tracked_env_var_os("REAL_LIBRARY_PATH_VAR").expect("REAL_LIBRARY_PATH_VAR");
|
||||
if let Some(env) = tracked_env_var_os("REAL_LIBRARY_PATH") {
|
||||
env::set_var(&key, &env);
|
||||
env::set_var(&key, env);
|
||||
} else {
|
||||
env::remove_var(&key);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue