From 22f8d61fb7d4238c61cbaf5c645ae8dd0359b592 Mon Sep 17 00:00:00 2001 From: Thomas de Zeeuw Date: Fri, 29 Dec 2023 21:21:11 +0100 Subject: [PATCH] Make RequestError::as_str public --- http/src/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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",