about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-04-27 15:04:18 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-04-27 17:48:15 +1000
commit207cec017f7ba30a15ab6faf60f28f6e027400a4 (patch)
tree1dd06701f31ac7c1f9f4654354480e68b65978c5 /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parent458d4dae845ec155b285681a5b88305641abb868 (diff)
downloadrust-207cec017f7ba30a15ab6faf60f28f6e027400a4.tar.gz
rust-207cec017f7ba30a15ab6faf60f28f6e027400a4.zip
Clean up `with_task`.
Currently it creates an `Option` and then does `map`/`unwrap_or` and
`map_or_else` on it, which is hard to read.

This commit simplifies things by moving more code into the two arms of
the if/else.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions