Add a nonexhaustive variant to Error.

This commit is contained in:
Jimmy Cuadra 2017-09-08 17:32:42 -07:00
parent 9ff74ba776
commit 474644ff66

View File

@ -53,6 +53,10 @@ pub enum Error {
SerdeUrlEncoded(serde_urlencoded::ser::Error),
/// An HTTP status code indicating error.
StatusCode(StatusCode),
/// Standard hack to prevent exhaustive matching.
/// This will be replaced by the #[non_exhaustive] feature when available.
#[doc(hidden)]
__Nonexhaustive,
}
impl From<http::Error> for Error {