From ef2dfcca135b119ff8fb466494ffd266e1905084 Mon Sep 17 00:00:00 2001 From: Adam Gutglick Date: Thu, 15 Aug 2024 18:02:29 +0100 Subject: [PATCH] . --- fuzz/fuzz_targets/fuzz_target_1.rs | 1 - fuzz/src/lib.rs | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/fuzz/fuzz_targets/fuzz_target_1.rs b/fuzz/fuzz_targets/fuzz_target_1.rs index 3108404b0d..7b88ef17a0 100644 --- a/fuzz/fuzz_targets/fuzz_target_1.rs +++ b/fuzz/fuzz_targets/fuzz_target_1.rs @@ -33,7 +33,6 @@ fuzz_target!(|fuzz_action: FuzzArrayAction| -> Corpus { assert_slice(&array, &slice, range.start); Corpus::Keep } - Action::NoOp => Corpus::Reject, } }); diff --git a/fuzz/src/lib.rs b/fuzz/src/lib.rs index 0c20323a14..fed8e7df93 100644 --- a/fuzz/src/lib.rs +++ b/fuzz/src/lib.rs @@ -29,7 +29,6 @@ impl std::fmt::Debug for FuzzArrayAction { #[derive()] pub enum Action { - NoOp, Compress(&'static dyn EncodingCompressor), Slice(Range), } @@ -37,7 +36,6 @@ pub enum Action { 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()), } @@ -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 {