Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamGS committed Aug 15, 2024
1 parent 7eeb4ed commit ef2dfcc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion fuzz/fuzz_targets/fuzz_target_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ fuzz_target!(|fuzz_action: FuzzArrayAction| -> Corpus {
assert_slice(&array, &slice, range.start);
Corpus::Keep
}
Action::NoOp => Corpus::Reject,
}
});

Expand Down
4 changes: 1 addition & 3 deletions fuzz/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@ impl std::fmt::Debug for FuzzArrayAction {

#[derive()]
pub enum Action {
NoOp,
Compress(&'static dyn EncodingCompressor),
Slice(Range<usize>),
}

impl std::fmt::Debug for Action {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::NoOp => write!(f, "NoOp"),
Self::Slice(arg0) => f.debug_tuple("Slice").field(arg0).finish(),
Self::Compress(c) => write!(f, "Compress({})", c.id()),
}
Expand All @@ -62,7 +60,7 @@ impl<'a> Arbitrary<'a> for FuzzArrayAction {
7 => Action::Compress(&DEFAULT_RUN_END_COMPRESSOR),
8 => Action::Compress(&SparseCompressor),
9 => Action::Compress(&ZigZagCompressor),
_ => Action::NoOp,
_ => unreachable!(),
};

Ok(Self {
Expand Down

0 comments on commit ef2dfcc

Please sign in to comment.