diff --git a/src/lib.rs b/src/lib.rs index 319f3304..3846c6fb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 for Error {