diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-09-21 16:10:15 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@sequoia-pgp.org> | 2021-09-30 08:31:03 +0300 |
commit | 795b89ae024d3d49a6f08283184b22770e160317 (patch) | |
tree | ff3b8268f6383e415f19058b308202229956d615 /openpgp | |
parent | 42fe483fa2138629572e13539d6274e59c28d6d1 (diff) |
When returning an error, use "return" instead of "?"
Instead of
Err(...)?;
which is correct but not idiomatic, write this:
return Err(...);
This was found by clippy lintt try_err:
https://rust-lang.github.io/rust-clippy/master/index.html#try_err
Sponsored-by: author
Diffstat (limited to 'openpgp')
0 files changed, 0 insertions, 0 deletions