Add #![warn(rust_2018_idioms)], fix warning
This commit is contained in:
parent
82f652abb4
commit
c957998455
@ -14,7 +14,7 @@ use serde_urlencoded::ser::Error as SerdeUrlEncodedSerializeError;
|
|||||||
pub struct Error(pub(crate) InnerError);
|
pub struct Error(pub(crate) InnerError);
|
||||||
|
|
||||||
impl Display for Error {
|
impl Display for Error {
|
||||||
fn fmt(&self, f: &mut Formatter) -> FmtResult {
|
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
|
||||||
let message = match self.0 {
|
let message = match self.0 {
|
||||||
InnerError::AuthenticationRequired => "The queried endpoint requires authentication but was called with an anonymous client.",
|
InnerError::AuthenticationRequired => "The queried endpoint requires authentication but was called with an anonymous client.",
|
||||||
InnerError::Hyper(_) => "An HTTP error occurred.",
|
InnerError::Hyper(_) => "An HTTP error occurred.",
|
||||||
|
@ -75,6 +75,7 @@
|
|||||||
//! # ;
|
//! # ;
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
|
#![warn(rust_2018_idioms)]
|
||||||
#![deny(
|
#![deny(
|
||||||
missing_copy_implementations,
|
missing_copy_implementations,
|
||||||
missing_debug_implementations,
|
missing_debug_implementations,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user