summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse/map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/parse/map.rs')
-rw-r--r--openpgp/src/parse/map.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/openpgp/src/parse/map.rs b/openpgp/src/parse/map.rs
index 5a106305..edc6cf4b 100644
--- a/openpgp/src/parse/map.rs
+++ b/openpgp/src/parse/map.rs
@@ -34,6 +34,7 @@ pub struct Map {
header: Vec<u8>,
data: Vec<u8>,
}
+assert_send_and_sync!{Map}
/// Represents an entry in the map.
#[derive(Clone, Debug)]
@@ -113,6 +114,7 @@ pub struct Field<'a> {
/// Value of the field.
data: &'a [u8],
}
+assert_send_and_sync!{Field<'a>, 'a}
impl<'a> Field<'a> {
fn new(map: &'a Map, i: usize) -> Option<Field<'a>> {