1
Fork 0

Improved the compiler code with clippy

This commit is contained in:
Michael Scholten 2024-04-23 11:47:51 +02:00
parent c67277301c
commit 3c5e88c7d1
4 changed files with 7 additions and 7 deletions

View file

@ -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);
}