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.
1 parent cd9ef08 commit 431d829Copy full SHA for 431d829
src/error.rs
@@ -174,7 +174,7 @@ impl Error {
174
}
175
176
/// Create a new error object from static string.
177
- pub fn new_from_str<M>(kind: ErrorKind, msg: M, status: StatusCode) -> Self
+ pub fn from_str<M>(kind: ErrorKind, msg: M, status: StatusCode) -> Self
178
where
179
M: Display + Debug + Send + Sync + 'static,
180
{
@@ -190,7 +190,7 @@ impl Error {
190
191
192
193
- Self::new_from_str(ErrorKind::Other, message, StatusCode::InternalServerError)
+ Self::from_str(ErrorKind::Other, message, StatusCode::InternalServerError)
194
195
196
/// Create a new error object from an I/O error.
0 commit comments