about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/build_system
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-11-16 21:58:58 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-11-16 21:58:58 +0000
commit94470f4efd2ec0786dd1f201e9ea84651b4bb0d0 (patch)
tree1bcf415fa3d0bedc9b223162446ab9653c8f5bec /compiler/rustc_codegen_cranelift/build_system
parente702534763599db252f2ca308739ec340d0933de (diff)
downloadrust-94470f4efd2ec0786dd1f201e9ea84651b4bb0d0.tar.gz
rust-94470f4efd2ec0786dd1f201e9ea84651b4bb0d0.zip
Use `as_deref` in compiler (but only where it makes sense)
Diffstat (limited to 'compiler/rustc_codegen_cranelift/build_system')
-rw-r--r--compiler/rustc_codegen_cranelift/build_system/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/build_system/utils.rs b/compiler/rustc_codegen_cranelift/build_system/utils.rs
index 48da64906e2..c627af4e62f 100644
--- a/compiler/rustc_codegen_cranelift/build_system/utils.rs
+++ b/compiler/rustc_codegen_cranelift/build_system/utils.rs
@@ -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")
 }