Skip to content

Commit 7df0239

Browse files
committed
clippy: fix warning from ptr_arg lint
1 parent 03fe614 commit 7df0239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/side_diff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ mod tests {
973973
}
974974
}
975975

976-
fn contains_string(vec: &Vec<u8>, s: &str) -> usize {
976+
fn contains_string(vec: &[u8], s: &str) -> usize {
977977
let pattern = s.as_bytes();
978978
vec.windows(pattern.len()).filter(|s| s == &pattern).count()
979979
}

0 commit comments

Comments
 (0)