Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ sudo: false

cache: cargo

env: # important!
global: RUSTFLAGS=-Dwarnings

matrix:
include:
- rust: stable
Expand Down
1 change: 1 addition & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ impl Error {
}

impl error::Error for Error {
#[allow(deprecated)]
fn description(&self) -> &str {
use self::ErrorKind::*;

Expand Down
1 change: 1 addition & 0 deletions src/header/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2002,6 +2002,7 @@ impl fmt::Debug for InvalidHeaderName {
}

impl fmt::Display for InvalidHeaderName {
#[allow(deprecated)]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
self.description().fmt(f)
}
Expand Down
2 changes: 2 additions & 0 deletions src/header/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ impl fmt::Debug for InvalidHeaderValue {
}

impl fmt::Display for InvalidHeaderValue {
#[allow(deprecated)]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
self.description().fmt(f)
}
Expand All @@ -580,6 +581,7 @@ impl Error for InvalidHeaderValue {
}

impl fmt::Display for ToStrError {
#[allow(deprecated)]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
self.description().fmt(f)
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
//! assert_eq!(uri.query(), None);
//! ```

#![deny(warnings, missing_docs, missing_debug_implementations)]
#![warn(missing_docs, missing_debug_implementations)]

#[cfg(test)]
#[macro_use]
Expand Down
1 change: 1 addition & 0 deletions src/method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ impl fmt::Debug for InvalidMethod {
}

impl fmt::Display for InvalidMethod {
#[allow(deprecated)]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.description())
}
Expand Down
1 change: 1 addition & 0 deletions src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ impl fmt::Debug for InvalidStatusCode {
}

impl fmt::Display for InvalidStatusCode {
#[allow(deprecated)]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(self.description())
}
Expand Down
2 changes: 2 additions & 0 deletions src/uri/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,7 @@ impl From<ErrorKind> for InvalidUriParts {
}

impl fmt::Display for InvalidUri {
#[allow(deprecated)]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
self.description().fmt(f)
}
Expand Down Expand Up @@ -1056,6 +1057,7 @@ impl fmt::Display for InvalidUriParts {
}

impl Error for InvalidUriParts {
#[allow(deprecated)]
fn description(&self) -> &str {
self.0.description()
}
Expand Down