Fix misc warnings from CI (#620)

This commit is contained in:
David Pedersen
2021-12-12 17:21:29 +01:00
committed by GitHub
parent d9bf100216
commit ecf3359980
3 changed files with 5 additions and 13 deletions
+1 -1
View File
@@ -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()),