diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-09-21 17:42:27 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@sequoia-pgp.org> | 2021-09-30 08:31:04 +0300 |
commit | bc7992d35667ed05dc59c5876372f785df97c63b (patch) | |
tree | 831041552f150880f76ad74895bb2185f913b6df /openpgp | |
parent | 0ffd43b786807c26d1bf95426b12900610ded699 (diff) |
Unpack value with if let instead of is_some/unwrap
The if let is more idiomatic and thus should be easier for Rust
programmers to understand. It also avoids to implicit dependency
between the if condition and the unwrap.
Found by clippy lint unnecessary_unrap:
https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
Diffstat (limited to 'openpgp')
0 files changed, 0 insertions, 0 deletions