summaryrefslogtreecommitdiffstats
path: root/ffi-macros
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-21 17:42:27 +0300
committerLars Wirzenius <liw@sequoia-pgp.org>2021-09-30 08:31:04 +0300
commitbc7992d35667ed05dc59c5876372f785df97c63b (patch)
tree831041552f150880f76ad74895bb2185f913b6df /ffi-macros
parent0ffd43b786807c26d1bf95426b12900610ded699 (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 'ffi-macros')
0 files changed, 0 insertions, 0 deletions