about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorLingMan <LingMan@users.noreply.github.com>2020-12-08 02:40:14 +0100
committerLingMan <LingMan@users.noreply.github.com>2020-12-08 02:40:14 +0100
commitaf9402af0f57607638294419b000f06a77da3014 (patch)
treefe7378af575afacf2068bade0a11c33a35ee1efb /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent3d6705aa5abffe94c83bf09af8c3ba3c599845fc (diff)
downloadrust-af9402af0f57607638294419b000f06a77da3014.tar.gz
rust-af9402af0f57607638294419b000f06a77da3014.zip
Replace simple `if let` constructs with Option::map
Replaces a few constructs of the form

if let Some(x) = var {
    Some(...)
} else {
    None
}

with calls to Option::map.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions