From 474644ff6682a915949603754e0c21743b2e8340 Mon Sep 17 00:00:00 2001 From: Jimmy Cuadra Date: Fri, 8 Sep 2017 17:32:42 -0700 Subject: [PATCH] Add a nonexhaustive variant to Error. --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) 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 {