mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-19 00:00:14 +02:00
Fix misc warnings from CI (#620)
This commit is contained in:
@@ -86,7 +86,7 @@ impl IntoResponse for ServerError {
|
||||
fn into_response(self) -> Response {
|
||||
match self {
|
||||
ServerError::ValidationError(_) => {
|
||||
let message = format!("Input validation error: [{}]", self).replace("\n", ", ");
|
||||
let message = format!("Input validation error: [{}]", self).replace('\n', ", ");
|
||||
(StatusCode::BAD_REQUEST, message)
|
||||
}
|
||||
ServerError::AxumFormRejection(_) => (StatusCode::BAD_REQUEST, self.to_string()),
|
||||
|
||||
Reference in New Issue
Block a user