Skip to content

Commit 4e0d295

Browse files
committed
Fix clippy lint
1 parent 28a6608 commit 4e0d295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/i386.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::{
44
};
55

66
fn search(haystack: &str, needle: &str) {
7-
let result = haystack.find(&needle).is_some();
7+
let result = haystack.contains(&needle);
88

99
let haystack = haystack.as_bytes();
1010
let needle = needle.as_bytes();

0 commit comments

Comments
 (0)