summaryrefslogtreecommitdiffstats
path: root/openpgp/src/armor.rs
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2020-12-04 20:06:17 +0100
committerAzul <azul@riseup.net>2020-12-08 10:35:58 +0100
commitb956d36cb50cac28aa9da0e373fb33c9a4c120af (patch)
treec20bb42230aed97494b6abe494bc8e22053f58a6 /openpgp/src/armor.rs
parent4a971af5abe70d41485df141a3d9fa97eaab5f1c (diff)
openpgp: Ensure public types are Send and Sync.
- See #627.
Diffstat (limited to 'openpgp/src/armor.rs')
-rw-r--r--openpgp/src/armor.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/openpgp/src/armor.rs b/openpgp/src/armor.rs
index 9ff4c538..e901cc1b 100644
--- a/openpgp/src/armor.rs
+++ b/openpgp/src/armor.rs
@@ -72,6 +72,8 @@ pub enum Kind {
File,
}
+assert_send_and_sync!{Kind}
+
#[cfg(test)]
impl Arbitrary for Kind {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
@@ -172,6 +174,8 @@ pub struct Writer<W: Write> {
dirty: bool,
}
+assert_send_and_sync!{Writer<Vec<u8>>}
+
impl<W: Write> Writer<W> {
/// Constructs a new filter for the given type of data.
///