diff options
Diffstat (limited to 'openpgp/src/keyhandle.rs')
-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())); + } } |