diff options
Diffstat (limited to 'openpgp/src/crypto/mpi.rs')
-rw-r--r-- | openpgp/src/crypto/mpi.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/openpgp/src/crypto/mpi.rs b/openpgp/src/crypto/mpi.rs index 541fd3b5..3fe7aa7b 100644 --- a/openpgp/src/crypto/mpi.rs +++ b/openpgp/src/crypto/mpi.rs @@ -43,7 +43,7 @@ pub struct MPI { /// Integer value as big-endian with leading zeros stripped. value: Box<[u8]>, } -assert_send_and_sync!{MPI} +assert_send_and_sync!(MPI); impl From<Vec<u8>> for MPI { fn from(v: Vec<u8>) -> Self { @@ -297,7 +297,7 @@ pub struct ProtectedMPI { /// Integer value as big-endian. value: Protected, } -assert_send_and_sync!{ProtectedMPI} +assert_send_and_sync!(ProtectedMPI); impl From<Vec<u8>> for ProtectedMPI { fn from(m: Vec<u8>) -> Self { @@ -506,7 +506,7 @@ pub enum PublicKey { rest: Box<[u8]>, }, } -assert_send_and_sync!{PublicKey} +assert_send_and_sync!(PublicKey); impl PublicKey { /// Returns the length of the public key in bits. @@ -667,7 +667,7 @@ pub enum SecretKeyMaterial { rest: Protected, }, } -assert_send_and_sync!{SecretKeyMaterial} +assert_send_and_sync!(SecretKeyMaterial); impl fmt::Debug for SecretKeyMaterial { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { @@ -868,7 +868,7 @@ pub enum SecretKeyChecksum { /// Sum of the decrypted secret key octets modulo 65536. Sum16, } -assert_send_and_sync!{SecretKeyChecksum} +assert_send_and_sync!(SecretKeyChecksum); impl Default for SecretKeyChecksum { fn default() -> Self { @@ -918,7 +918,7 @@ pub enum Ciphertext { rest: Box<[u8]>, }, } -assert_send_and_sync!{Ciphertext} +assert_send_and_sync!(Ciphertext); impl Ciphertext { /// Returns, if known, the public-key algorithm for this @@ -1029,7 +1029,7 @@ pub enum Signature { rest: Box<[u8]>, }, } -assert_send_and_sync!{Signature} +assert_send_and_sync!(Signature); impl Hash for Signature { fn hash(&self, mut hash: &mut dyn hash::Digest) { |