We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e738925 commit 5638704Copy full SHA for 5638704
examples/http_body/src/lib.rs
@@ -60,7 +60,7 @@ impl HttpContext for HttpBody {
60
if let Some(body_bytes) = self.get_http_response_body(0, body_size) {
61
let body_str = String::from_utf8(body_bytes).unwrap();
62
if body_str.contains("secret") {
63
- let new_body = format!("Original message body ({} bytes) redacted.\n", body_size);
+ let new_body = format!("Original message body ({body_size} bytes) redacted.\n");
64
self.set_http_response_body(0, body_size, &new_body.into_bytes());
65
}
66
0 commit comments