We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 486a219 + 7c0421e commit 246c64bCopy full SHA for 246c64b
src/error.rs
@@ -45,6 +45,18 @@ pub enum Error {
45
Ssl(SslError),
46
/// An HTTP/2-specific error, coming from the `solicit` library.
47
Http2(Http2Error),
48
+
49
+ #[doc(hidden)]
50
+ __Nonexhaustive(Void)
51
+}
52
53
+#[doc(hidden)]
54
+pub enum Void {}
55
56
+impl fmt::Debug for Void {
57
+ fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result {
58
+ match *self {}
59
+ }
60
}
61
62
impl fmt::Display for Error {
@@ -65,6 +77,7 @@ impl StdError for Error {
65
77
Io(ref e) => e.description(),
66
78
Ssl(ref e) => e.description(),
67
79
Http2(ref e) => e.description(),
80
+ Error::__Nonexhaustive(ref void) => match *void {}
68
81
69
82
70
83
0 commit comments