diff options
author | Neal H. Walfield <neal@pep.foundation> | 2023-05-12 12:03:07 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2023-05-12 13:28:16 +0200 |
commit | f910aa90dfa15e5d3b842047dee89cd0a14379b4 (patch) | |
tree | d01cf0af5b96c88a4e31e9c95b2eb03cb26d3a5e /.cargo/config.toml | |
parent | f1305df5022704e9cc60fd13f3bf724f8eeb7745 (diff) |
autocrypt: Refactor to avoid unnecessary unwraps and panics.
- The sole caller of `decode_autocrypt_like_header` already has the
data in the form that `decode_autocrypt_like_header` wants. Pass it
as is. This avoids double parsing and, since we now use the
expected types, `unwrap`s and a `panic`.
Diffstat (limited to '.cargo/config.toml')
-rw-r--r-- | .cargo/config.toml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml index 3e57a8d6..ef32e648 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -9,4 +9,5 @@ rustflags = [ "-Aclippy::redundant-clone", "-Aclippy::try-err", "-Aclippy::unnecessary-lazy-evaluations", + "-Aclippy::manual-map", ] |