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 a979d94
Showing 1 changed file with 1 addition and 3 deletions.
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 a979d94

Please sign in to comment.