diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-11-26 14:05:39 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-11-26 15:22:34 +0100 |
commit | eb5b1798ce4aa32c3c6d25bcac793ed5c9b59185 (patch) | |
tree | fa1029cf1388718f91d39b524fdde7172d7c767b | |
parent | 0a432bfb0f17048ef7e1bdf672cb0aa6e4cd5786 (diff) |
openpgp: Assert that CertBuilder is Send + Sync.
-rw-r--r-- | openpgp/src/cert/builder.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openpgp/src/cert/builder.rs b/openpgp/src/cert/builder.rs index 413dce36..5976a931 100644 --- a/openpgp/src/cert/builder.rs +++ b/openpgp/src/cert/builder.rs @@ -1431,4 +1431,10 @@ mod tests { revokers.iter().collect::<HashSet<_>>()); Ok(()) } + + #[test] + fn cert_builder_is_send_and_sync() { + fn f<T: Send + Sync>(_: T) {} + f(CertBuilder::new().generate().unwrap()); + } } |