diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2022-03-02 10:50:50 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2022-03-02 11:06:29 +0100 |
commit | 4137a5a873c9365aecd31efadd34643e90b537da (patch) | |
tree | 1384451a9d9b37c329fe79809e9f69360047b4b8 /openpgp/src/packet | |
parent | cd8defaacd7c8fd86a1536c15ce786f153f1652a (diff) |
openpgp: Fix warnings when building without compression features.
Diffstat (limited to 'openpgp/src/packet')
-rw-r--r-- | openpgp/src/packet/container.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp/src/packet/container.rs b/openpgp/src/packet/container.rs index dfbb624b..fd8c0f2f 100644 --- a/openpgp/src/packet/container.rs +++ b/openpgp/src/packet/container.rs @@ -435,6 +435,7 @@ impl Packet { /// Retrieves the packet's unprocessed body. #[cfg(test)] + #[allow(dead_code)] // Not used if no compression feature is enabled. pub(crate) fn unprocessed_body(&self) -> Option<&[u8]> { self.container_ref().and_then(|c| match c.body() { Body::Unprocessed(bytes) => Some(&bytes[..]), |