Skip to content

Commit 85f92f8

Browse files
authored
Fix warnings from Clippy v1.50.0 (nightly). (#58)
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
1 parent 7de2acd commit 85f92f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/http_body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl HttpContext for HttpBody {
6060
// Since we returned "Pause" previuously, this will return the whole body.
6161
if let Some(body_bytes) = self.get_http_response_body(0, body_size) {
6262
let body_str = String::from_utf8(body_bytes).unwrap();
63-
if body_str.find("secret").is_some() {
63+
if body_str.contains("secret") {
6464
let new_body = format!("Original message body ({} bytes) redacted.", body_size);
6565
self.set_http_response_body(0, body_size, &new_body.into_bytes());
6666
}

0 commit comments

Comments
 (0)