diff --git a/src/error.rs b/src/error.rs index b3da1b84..289cbef2 100644 --- a/src/error.rs +++ b/src/error.rs @@ -14,7 +14,7 @@ use serde_urlencoded::ser::Error as SerdeUrlEncodedSerializeError; pub struct Error(pub(crate) InnerError); impl Display for Error { - fn fmt(&self, f: &mut Formatter) -> FmtResult { + fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult { let message = match self.0 { InnerError::AuthenticationRequired => "The queried endpoint requires authentication but was called with an anonymous client.", InnerError::Hyper(_) => "An HTTP error occurred.", diff --git a/src/lib.rs b/src/lib.rs index 415be2ea..5275c05e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -75,6 +75,7 @@ //! # ; //! ``` +#![warn(rust_2018_idioms)] #![deny( missing_copy_implementations, missing_debug_implementations,