Skip to content

Commit

Permalink
Make RequestError::as_str public
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Dec 29, 2023
1 parent 579518c commit 22f8d61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 22f8d61

Please sign in to comment.