diff options
author | Neal H. Walfield <neal@pep.foundation> | 2021-01-19 10:54:00 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2021-01-19 17:17:46 +0100 |
commit | e13677838f65e5ec6d1624ec10de36b2771efcd4 (patch) | |
tree | 531fe0fff125225608262b9a74f3c89b14888c67 | |
parent | d6559b74d0b20f214f418c962d472a55aa4ed1e9 (diff) |
openpgp: Assert that Regex and RegexSet are send and sync.
-rw-r--r-- | openpgp/src/regex/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openpgp/src/regex/mod.rs b/openpgp/src/regex/mod.rs index 626e5190..b3de4f78 100644 --- a/openpgp/src/regex/mod.rs +++ b/openpgp/src/regex/mod.rs @@ -386,6 +386,7 @@ pub struct Regex { regex: regex::Regex, disable_sanitizations: bool, } +assert_send_and_sync!(Regex); impl Regex { /// Parses and compiles the regular expression. @@ -496,6 +497,7 @@ enum RegexSet_ { Regex(Regex), Invalid, } +assert_send_and_sync!(RegexSet_); /// A set of regular expressions. /// @@ -538,6 +540,7 @@ pub struct RegexSet { re_set: RegexSet_, disable_sanitizations: bool, } +assert_send_and_sync!(RegexSet); impl RegexSet { /// Parses and compiles the regular expressions. |