Commit 83ef1892 authored by Steven Fackler's avatar Steven Fackler
Browse files

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

Mark PKey as `Send` and `Sync`
parents 84c1880e 89e88727
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -57,6 +57,9 @@ pub struct PKey {
    parts: Parts,
}

unsafe impl Send for PKey {}
unsafe impl Sync for PKey {}

/// Represents a public key, optionally with a private key attached.
impl PKey {
    pub fn new() -> PKey {