Add a nonexhaustive variant to Error.
This commit is contained in:
parent
9ff74ba776
commit
474644ff66
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user