summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-11-25 13:15:46 +0100
committerNora Widdecke <nora@sequoia-pgp.org>2021-11-29 11:53:55 +0100
commit4147ebc3ceb6ee955c3ec81c872e33f17c44c9c2 (patch)
tree609eab2b1032b91425d0dfb0f498ad4309729b93 /openpgp
parent9dc9bb370bfc14596e6547701b5b3a769544c82d (diff)
openpgp: Allow *Bundle enum variant names.
- It's confusing that the variants of a Component are all Bundles, however there are Components, Bundles and ComponentBundles in the codebase, so the confusion stems from elsewhere. - Found with clippy::enum_variant_names.
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/src/cert/parser/low_level/lexer.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp/src/cert/parser/low_level/lexer.rs b/openpgp/src/cert/parser/low_level/lexer.rs
index bc8f2300..6279ab2f 100644
--- a/openpgp/src/cert/parser/low_level/lexer.rs
+++ b/openpgp/src/cert/parser/low_level/lexer.rs
@@ -53,6 +53,7 @@ assert_send_and_sync!(Token);
/// Due to the way the parser code is generated, it must be marked as
/// public. But, since this module is not public, it will not
/// actually be exported to users of the library.
+#[allow(clippy::enum_variant_names)]
pub enum Component {
SubkeyBundle(SubkeyBundle<key::PublicParts>),
UserIDBundle(UserIDBundle),