diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-11-23 10:09:52 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-11-24 13:28:54 +0100 |
commit | 7c84dc3da91ee80a273834eeee45588e0e81d5cc (patch) | |
tree | baba1f56cd8f3dd8cdf4fb6fc766c62d53e066b6 | |
parent | 429358370ad6ec8a00b4fd97c723533ceedb4f40 (diff) |
openpgp: Assert that KeyHandle is Send + Sync.
- See #615.
-rw-r--r-- | openpgp/src/keyhandle.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openpgp/src/keyhandle.rs b/openpgp/src/keyhandle.rs index 86824e76..d3cd18a1 100644 --- a/openpgp/src/keyhandle.rs +++ b/openpgp/src/keyhandle.rs @@ -254,4 +254,10 @@ mod tests { assert_eq!(format!("{:x}", handle), "0a02"); } + #[test] + fn key_handle_is_send_and_sync() { + fn f<T: Send + Sync>(_: T) {} + f(KeyHandle::from("0123 4567 89AB CDEF 0123 4567 89AB CDEF 0123 4567" + .parse::<Fingerprint>().unwrap())); + } } |