summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse
diff options
context:
space:
mode:
authorLars Wirzenius <liw@sequoia-pgp.org>2021-09-29 15:05:32 +0300
committerLars Wirzenius <liw@sequoia-pgp.org>2021-09-30 08:31:19 +0300
commit347e9519954b1a7702d7120d6c265ea3d82b64cc (patch)
tree152f5f3d8fa672996ae8c9752edc8ce6ac2c3d48 /openpgp/src/parse
parent798433cafd6d3b1e4c411f4e022277a6b8450746 (diff)
Annotate functions where clippy::redundant_pattern_matching is OK
See https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r--openpgp/src/parse/packet_parser_builder.rs1
-rw-r--r--openpgp/src/parse/stream.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/openpgp/src/parse/packet_parser_builder.rs b/openpgp/src/parse/packet_parser_builder.rs
index d94a5d2e..24b9a13b 100644
--- a/openpgp/src/parse/packet_parser_builder.rs
+++ b/openpgp/src/parse/packet_parser_builder.rs
@@ -396,6 +396,7 @@ impl<'a> PacketParserBuilder<'a> {
/// ppr = pp.recurse()?.1;
/// }
/// # Ok(()) }
+ #[allow(clippy::redundant_pattern_matching)]
pub fn build(mut self)
-> Result<PacketParserResult<'a>>
where Self: 'a
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs
index 141b8f5c..22dbf9a0 100644
--- a/openpgp/src/parse/stream.rs
+++ b/openpgp/src/parse/stream.rs
@@ -2265,6 +2265,7 @@ impl<'a, H: VerificationHelper + DecryptionHelper> Decryptor<'a, H> {
}
/// Creates the `Decryptor`, and buffers the data up to `buffer_size`.
+ #[allow(clippy::redundant_pattern_matching)]
fn from_buffered_reader<T>(
policy: &'a dyn Policy,
bio: Box<dyn BufferedReader<Cookie> + 'a>,