Rename to then_some
and then
This commit is contained in:
parent
8579fe6fc3
commit
9f1269f23c
37 changed files with 57 additions and 57 deletions
|
@ -245,7 +245,7 @@ impl ConstMethods<'tcx> for CodegenCx<'ll, 'tcx> {
|
|||
let (mut lo, mut hi) = (0u64, 0u64);
|
||||
let success = llvm::LLVMRustConstInt128Get(v, sign_ext,
|
||||
&mut hi, &mut lo);
|
||||
success.to_option(hi_lo_to_u128(lo, hi))
|
||||
success.then_some(hi_lo_to_u128(lo, hi))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue