mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Use inline format args (#2232)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user