summaryrefslogtreecommitdiff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
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 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent458d4dae845ec155b285681a5b88305641abb868 (diff)
downloadrust-207cec017f7ba30a15ab6faf60f28f6e027400a4.tar.gz
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 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions