From a08fc01c0bce63f913e1b4b1a673169d59738b63 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 12 Nov 2019 01:26:33 +0100 Subject: [PATCH] Add #![warn(rust_2018_idioms)], fix warning --- src/keys.rs | 2 +- src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keys.rs b/src/keys.rs index 1cbc7d10..8800831c 100644 --- a/src/keys.rs +++ b/src/keys.rs @@ -76,7 +76,7 @@ impl KeyPair for Ed25519KeyPair { } impl Debug for Ed25519KeyPair { - fn fmt(&self, formatter: &mut Formatter) -> FmtResult { + fn fmt(&self, formatter: &mut Formatter<'_>) -> FmtResult { formatter .debug_struct("Ed25519KeyPair") .field("public_key", &self.public_key) diff --git a/src/lib.rs b/src/lib.rs index 8f4e9806..6908df9b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -41,6 +41,7 @@ //! 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. +#![warn(rust_2018_idioms)] #![deny( missing_copy_implementations, missing_debug_implementations,