diff options
| author | Michael Scholten <michael-scholten@hotmail.nl> | 2024-04-23 11:47:51 +0200 |
|---|---|---|
| committer | Michael Scholten <michael-scholten@hotmail.nl> | 2024-04-24 09:41:44 +0200 |
| commit | 3c5e88c7d19fee810ce5bdaaae8c9da8caabd6eb (patch) | |
| tree | 1719e31cb7b317a8546ce2a4d6bd9f4a52756ceb /compiler/rustc_llvm/build.rs | |
| parent | c67277301c896857d0534f2bb7431680796833fb (diff) | |
| download | rust-3c5e88c7d19fee810ce5bdaaae8c9da8caabd6eb.tar.gz rust-3c5e88c7d19fee810ce5bdaaae8c9da8caabd6eb.zip | |
Improved the compiler code with clippy
Diffstat (limited to 'compiler/rustc_llvm/build.rs')
| -rw-r--r-- | compiler/rustc_llvm/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs index 66ca94d1d9c..024f6f89a4b 100644 --- a/compiler/rustc_llvm/build.rs +++ b/compiler/rustc_llvm/build.rs @@ -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); } |
