summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/container.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/packet/container.rs')
-rw-r--r--openpgp/src/packet/container.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/openpgp/src/packet/container.rs b/openpgp/src/packet/container.rs
index cb96b85d..5a043634 100644
--- a/openpgp/src/packet/container.rs
+++ b/openpgp/src/packet/container.rs
@@ -95,6 +95,8 @@ pub enum Body {
Structured(Vec<Packet>),
}
+assert_send_and_sync!{Body}
+
/// Holds packet bodies.
///
/// This is used by OpenPGP container packets, like the compressed
@@ -108,6 +110,8 @@ pub struct Container {
body_digest: Vec<u8>,
}
+assert_send_and_sync!{Container}
+
impl std::ops::Deref for Container {
type Target = Body;
fn deref(&self) -> &Self::Target {