diff options
-rw-r--r-- | buffered-reader/src/eof.rs | 1 | ||||
-rw-r--r-- | openpgp/src/cert/builder.rs | 1 | ||||
-rw-r--r-- | openpgp/src/cert/revoke.rs | 4 | ||||
-rw-r--r-- | openpgp/src/packet/seip.rs | 1 |
4 files changed, 7 insertions, 0 deletions
diff --git a/buffered-reader/src/eof.rs b/buffered-reader/src/eof.rs index 6298b52b..08b0a2b6 100644 --- a/buffered-reader/src/eof.rs +++ b/buffered-reader/src/eof.rs @@ -20,6 +20,7 @@ impl<C> fmt::Display for EOF<C> { } } +#[allow(clippy::new_without_default)] impl EOF<()> { /// Instantiates a new `EOF`. pub fn new() -> Self { diff --git a/openpgp/src/cert/builder.rs b/openpgp/src/cert/builder.rs index 235f2cd9..c9f926a2 100644 --- a/openpgp/src/cert/builder.rs +++ b/openpgp/src/cert/builder.rs @@ -235,6 +235,7 @@ pub struct CertBuilder<'a> { } assert_send_and_sync!(CertBuilder<'_>); +#[allow(clippy::new_without_default)] impl CertBuilder<'_> { /// Returns a new `CertBuilder`. /// diff --git a/openpgp/src/cert/revoke.rs b/openpgp/src/cert/revoke.rs index c3b02077..7ecb5787 100644 --- a/openpgp/src/cert/revoke.rs +++ b/openpgp/src/cert/revoke.rs @@ -83,6 +83,7 @@ pub struct CertRevocationBuilder { } assert_send_and_sync!(CertRevocationBuilder); +#[allow(clippy::new_without_default)] impl CertRevocationBuilder { /// Returns a new `CertRevocationBuilder`. /// @@ -333,6 +334,7 @@ pub struct SubkeyRevocationBuilder { } assert_send_and_sync!(SubkeyRevocationBuilder); +#[allow(clippy::new_without_default)] impl SubkeyRevocationBuilder { /// Returns a new `SubkeyRevocationBuilder`. /// @@ -579,6 +581,7 @@ pub struct UserIDRevocationBuilder { } assert_send_and_sync!(UserIDRevocationBuilder); +#[allow(clippy::new_without_default)] impl UserIDRevocationBuilder { /// Returns a new `UserIDRevocationBuilder`. /// @@ -839,6 +842,7 @@ pub struct UserAttributeRevocationBuilder { } assert_send_and_sync!(UserAttributeRevocationBuilder); +#[allow(clippy::new_without_default)] impl UserAttributeRevocationBuilder { /// Returns a new `UserAttributeRevocationBuilder`. /// diff --git a/openpgp/src/packet/seip.rs b/openpgp/src/packet/seip.rs index e79bb2bb..b808acf2 100644 --- a/openpgp/src/packet/seip.rs +++ b/openpgp/src/packet/seip.rs @@ -46,6 +46,7 @@ impl std::ops::DerefMut for SEIP1 { } } +#[allow(clippy::new_without_default)] impl SEIP1 { /// Creates a new SEIP1 packet. pub fn new() -> Self { |