Add #![warn(rust_2018_idioms)], fix warning

This commit is contained in:
Jonas Platte 2019-11-12 01:26:33 +01:00
parent d3e5190670
commit a08fc01c0b
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
2 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,7 @@ impl KeyPair for Ed25519KeyPair {
} }
impl Debug for Ed25519KeyPair { impl Debug for Ed25519KeyPair {
fn fmt(&self, formatter: &mut Formatter) -> FmtResult { fn fmt(&self, formatter: &mut Formatter<'_>) -> FmtResult {
formatter formatter
.debug_struct("Ed25519KeyPair") .debug_struct("Ed25519KeyPair")
.field("public_key", &self.public_key) .field("public_key", &self.public_key)

View File

@ -41,6 +41,7 @@
//! signatures and hashes on an event, use the `verify_event` function. See the documentation for //! signatures and hashes on an event, use the `verify_event` function. See the documentation for
//! these respective functions for more details and full examples of use. //! these respective functions for more details and full examples of use.
#![warn(rust_2018_idioms)]
#![deny( #![deny(
missing_copy_implementations, missing_copy_implementations,
missing_debug_implementations, missing_debug_implementations,