Skip to content

Commit 5251769

Browse files
committed
make more pleasant to read
1 parent d8da513 commit 5251769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ pub unsafe fn create_module<'ll>(
191191
//
192192
// FIXME(#34960)
193193
let cfg_llvm_root = option_env!("CFG_LLVM_ROOT").unwrap_or("");
194-
let custom_llvm_used = cfg_llvm_root.trim() != "";
194+
let custom_llvm_used = !cfg_llvm_root.trim().is_empty();
195195

196196
if !custom_llvm_used && target_data_layout != llvm_data_layout {
197197
bug!(

0 commit comments

Comments
 (0)