about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2023-02-15 17:39:43 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2023-02-16 15:26:03 +0000
commit5bf6a46032b6c746da5a95dc5c6e0ac46ac9b075 (patch)
tree6567488546972f2ee2ee3ac91c0e22e794c51ffc /compiler/rustc_codegen_llvm/src
parent8751fa1a9abda9fc7ced6b03315efbd82310830d (diff)
downloadrust-5bf6a46032b6c746da5a95dc5c6e0ac46ac9b075.tar.gz
rust-5bf6a46032b6c746da5a95dc5c6e0ac46ac9b075.zip
Replace some `then`s with some `then_some`s
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/type_of.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/type_of.rs b/compiler/rustc_codegen_llvm/src/type_of.rs
index b45b76e36dd..cc8ff947fc3 100644
--- a/compiler/rustc_codegen_llvm/src/type_of.rs
+++ b/compiler/rustc_codegen_llvm/src/type_of.rs
@@ -154,7 +154,7 @@ fn struct_llfields<'a, 'tcx>(
     } else {
         debug!("struct_llfields: offset: {:?} stride: {:?}", offset, layout.size);
     }
-    let field_remapping = padding_used.then(|| field_remapping);
+    let field_remapping = padding_used.then_some(field_remapping);
     (result, packed, field_remapping)
 }