Skip to content

Commit 5638704

Browse files
authored
Fix uninlined-format-args warning from clippy nightly. (#183)
Signed-off-by: Piotr Sikora <[email protected]>
1 parent e738925 commit 5638704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/http_body/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl HttpContext for HttpBody {
6060
if let Some(body_bytes) = self.get_http_response_body(0, body_size) {
6161
let body_str = String::from_utf8(body_bytes).unwrap();
6262
if body_str.contains("secret") {
63-
let new_body = format!("Original message body ({} bytes) redacted.\n", body_size);
63+
let new_body = format!("Original message body ({body_size} bytes) redacted.\n");
6464
self.set_http_response_body(0, body_size, &new_body.into_bytes());
6565
}
6666
}

0 commit comments

Comments
 (0)