summaryrefslogtreecommitdiffstats
path: root/openpgp/src/lib.rs
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2020-12-04 20:06:17 +0100
committerAzul <azul@riseup.net>2020-12-08 10:35:58 +0100
commitb956d36cb50cac28aa9da0e373fb33c9a4c120af (patch)
treec20bb42230aed97494b6abe494bc8e22053f58a6 /openpgp/src/lib.rs
parent4a971af5abe70d41485df141a3d9fa97eaab5f1c (diff)
openpgp: Ensure public types are Send and Sync.
- See #627.
Diffstat (limited to 'openpgp/src/lib.rs')
-rw-r--r--openpgp/src/lib.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/openpgp/src/lib.rs b/openpgp/src/lib.rs
index 4dc01d06..a0b5c642 100644
--- a/openpgp/src/lib.rs
+++ b/openpgp/src/lib.rs
@@ -303,8 +303,4 @@ pub enum Error {
PolicyViolation(String, Option<std::time::SystemTime>),
}
-#[test]
-fn error_is_send_and_sync() {
- fn f<T: Send + Sync>(_: T) {}
- f(Error::IndexOutOfRange);
-}
+assert_send_and_sync!{Error}