summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/packet')
-rw-r--r--openpgp/src/packet/container.rs1
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[..]),