Skip to content

Commit 2a509a0

Browse files
committed
Fix fuzzing, again
1 parent dc21bcb commit 2a509a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fuzz/fuzz_targets/smallvec_ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn do_test<const N: usize>(data: &[u8]) -> SmallVec<u8, N> {
107107

108108
19 => {
109109
let result = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| {
110-
v.retain(|e| {
110+
v.retain_mut(|e| {
111111
let alt_e = bytes.next().unwrap();
112112
let retain = *e >= alt_e;
113113
*e = e.wrapping_add(alt_e);

0 commit comments

Comments
 (0)