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
+2 -2
View File
@@ -63,13 +63,13 @@ where
Err(err) => {
return Err((
StatusCode::BAD_REQUEST,
format!("failed to read {} body: {}", direction, err),
format!("failed to read {direction} body: {err}"),
));
}
};
if let Ok(body) = std::str::from_utf8(&bytes) {
tracing::debug!("{} body = {:?}", direction, body);
tracing::debug!("{direction} body = {body:?}");
}
Ok(bytes)