summaryrefslogtreecommitdiffstats
path: root/openpgp/src/message/lexer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/message/lexer.rs')
-rw-r--r--openpgp/src/message/lexer.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/openpgp/src/message/lexer.rs b/openpgp/src/message/lexer.rs
index 623dc05d..e1ac7194 100644
--- a/openpgp/src/message/lexer.rs
+++ b/openpgp/src/message/lexer.rs
@@ -42,6 +42,7 @@ pub enum Token {
/// A container's unparsed content.
OpaqueContent,
}
+assert_send_and_sync!(Token);
impl fmt::Display for Token {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
@@ -53,6 +54,7 @@ impl fmt::Display for Token {
pub enum LexicalError {
// There are no lexing errors.
}
+assert_send_and_sync!(LexicalError);
impl fmt::Display for LexicalError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {