diff options
author | Azul <azul@riseup.net> | 2020-12-08 10:34:21 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-12-08 12:51:56 +0100 |
commit | 96dfdae428197dd180cf10cff54b96ce8bc35d7b (patch) | |
tree | 8d57c13921fdbc95bd3e0438e496d240a42676f2 /openpgp/src/message/lexer.rs | |
parent | 6f77fb84cec4d3d62d3885ce6270919bc81419dc (diff) |
openpgp: Add assert_send_and_sync! for more types.
- All types that are `Send` and `Sync` are checked now.
- Fixes #627.
Diffstat (limited to 'openpgp/src/message/lexer.rs')
-rw-r--r-- | openpgp/src/message/lexer.rs | 2 |
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 { |