Merge pull request #329 from bheart/send-sync-pkey

Mark PKey as `Send` and `Sync`
This commit is contained in:
Steven Fackler 2016-01-06 21:51:39 -08:00
commit 83ef18922f
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ pub struct PKey {
parts: Parts, parts: Parts,
} }
unsafe impl Send for PKey {}
unsafe impl Sync for PKey {}
/// Represents a public key, optionally with a private key attached. /// Represents a public key, optionally with a private key attached.
impl PKey { impl PKey {
pub fn new() -> PKey { pub fn new() -> PKey {