'new_without_default' clippy warnings

This commit is contained in:
Jedrzej Stuczynski
2020-02-19 15:38:46 +00:00
parent a62744a177
commit 1a8573632f
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -39,6 +39,12 @@ impl KeyPair {
}
}
impl Default for KeyPair {
fn default() -> Self {
KeyPair::new()
}
}
impl PemStorableKeyPair for KeyPair {
type PrivatePemKey = PrivateKey;
type PublicPemKey = PublicKey;
+6
View File
@@ -36,6 +36,12 @@ impl MixIdentityKeyPair {
}
}
impl Default for MixIdentityKeyPair {
fn default() -> Self {
MixIdentityKeyPair::new()
}
}
impl PemStorableKeyPair for MixIdentityKeyPair {
type PrivatePemKey = MixIdentityPrivateKey;
type PublicPemKey = MixIdentityPublicKey;