Use inline format args (#2232)

This commit is contained in:
Yuri Astrakhan
2023-09-19 06:51:57 +00:00
committed by GitHub
parent a9822ec80b
commit 786329d85d
35 changed files with 72 additions and 83 deletions
@@ -109,7 +109,7 @@ where
},
_ => PathError {
message: format!("Unhandled deserialization error: {}", kind),
message: format!("Unhandled deserialization error: {kind}"),
location: None,
},
};
@@ -126,7 +126,7 @@ where
_ => (
StatusCode::INTERNAL_SERVER_ERROR,
PathError {
message: format!("Unhandled path rejection: {}", rejection),
message: format!("Unhandled path rejection: {rejection}"),
location: None,
},
),