diff --git a/http/src/server.rs b/http/src/server.rs index 1634839f6..2abf92c8d 100644 --- a/http/src/server.rs +++ b/http/src/server.rs @@ -1147,9 +1147,9 @@ impl RequestError { } } - + /// Returns a static error message for the error. #[rustfmt::skip] - fn as_str(&self) -> &'static str { + pub fn as_str(&self) -> &'static str { use RequestError::*; match self { IncompleteRequest => "incomplete request",