summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse.rs
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2020-12-10 09:38:59 +0100
committerAzul <azul@riseup.net>2020-12-10 13:57:19 +0100
commit7176d5746beb8835a1a09e9c3504f7bc8d0da6b3 (patch)
treedb806ebfd3b4ea1c14fab8dfb90a868502481031 /openpgp/src/parse.rs
parent227db80b9d40526387f1e4a64f90464618fb885b (diff)
openpgp: Add remaining assert_send_and_sync! calls.
- See #615.
Diffstat (limited to 'openpgp/src/parse.rs')
-rw-r--r--openpgp/src/parse.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs
index e557850e..968e19b6 100644
--- a/openpgp/src/parse.rs
+++ b/openpgp/src/parse.rs
@@ -3231,6 +3231,7 @@ pub struct PacketParser<'a> {
state: PacketParserState,
}
+assert_send_and_sync!(PacketParser<'_>);
impl<'a> std::fmt::Display for PacketParser<'a> {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
@@ -3311,6 +3312,7 @@ pub struct PacketParserEOF<'a> {
reader: Box<dyn BufferedReader<Cookie> + 'a>,
last_path: Vec<usize>,
}
+assert_send_and_sync!(PacketParserEOF<'_>);
impl<'a> PacketParserEOF<'a> {
/// Copies the important information in `pp` into a new
@@ -3572,6 +3574,7 @@ pub enum PacketParserResult<'a> {
/// Information about a fully parsed packet sequence.
EOF(PacketParserEOF<'a>),
}
+assert_send_and_sync!(PacketParserResult<'_>);
impl<'a> PacketParserResult<'a> {
/// Returns `true` if the result is `EOF`.