]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_cranelift/build_system/utils.rs
Auto merge of #2698 - RalfJung:miri-in-rustc, r=oli-obk
[rust.git] / compiler / rustc_codegen_cranelift / build_system / utils.rs
index 48da64906e2a4b30189c82535f560a899e547510..c627af4e62fe14073bc539d195cb5623afd7dabe 100644 (file)
@@ -104,5 +104,5 @@ pub(crate) fn copy_dir_recursively(from: &Path, to: &Path) {
 }
 
 pub(crate) fn is_ci() -> bool {
-    env::var("CI").as_ref().map(|val| &**val) == Ok("true")
+    env::var("CI").as_deref() == Ok("true")
 }