diff --git a/libafl/src/events/llmp.rs b/libafl/src/events/llmp.rs index 9971997f70..93c9f00bb0 100644 --- a/libafl/src/events/llmp.rs +++ b/libafl/src/events/llmp.rs @@ -694,7 +694,6 @@ pub fn setup_restarting_mgr_std( > where I: Input, - S: DeserializeOwned, MT: Monitor + Clone, OT: ObserversTuple + DeserializeOwned, S: DeserializeOwned, diff --git a/libafl/src/feedbacks/map.rs b/libafl/src/feedbacks/map.rs index ea6450a69a..caa020e8b7 100644 --- a/libafl/src/feedbacks/map.rs +++ b/libafl/src/feedbacks/map.rs @@ -275,7 +275,7 @@ impl MapNoveltiesMetadata { #[serde(bound = "T: serde::de::DeserializeOwned")] pub struct MapFeedbackState where - T: PrimInt + Default + Copy + 'static + Serialize + serde::de::DeserializeOwned, + T: PrimInt + Default + Copy + 'static + Serialize, { /// Contains information about untouched entries pub history_map: Vec, diff --git a/libafl/src/feedbacks/new_hash_feedback.rs b/libafl/src/feedbacks/new_hash_feedback.rs index 253b4ab89c..dc4f1da76b 100644 --- a/libafl/src/feedbacks/new_hash_feedback.rs +++ b/libafl/src/feedbacks/new_hash_feedback.rs @@ -30,7 +30,7 @@ pub trait HashSetState { #[serde(bound = "T: serde::de::DeserializeOwned")] pub struct NewHashFeedbackState where - T: PrimInt + Default + Copy + 'static + Serialize + serde::de::DeserializeOwned + Hash + Debug, + T: PrimInt + Default + Copy + 'static + Serialize + Hash + Debug, { /// Contains information about untouched entries pub hash_set: HashSet, diff --git a/libafl/src/observers/cmp.rs b/libafl/src/observers/cmp.rs index 354a98e48e..2e32f7b484 100644 --- a/libafl/src/observers/cmp.rs +++ b/libafl/src/observers/cmp.rs @@ -195,7 +195,7 @@ where #[serde(bound = "CM: serde::de::DeserializeOwned")] pub struct StdCmpObserver<'a, CM> where - CM: CmpMap + Serialize + DeserializeOwned, + CM: CmpMap + Serialize, { cmp_map: OwnedRefMut<'a, CM>, size: Option>, diff --git a/libafl/src/observers/map.rs b/libafl/src/observers/map.rs index 94a22de68a..0bea5c82ff 100644 --- a/libafl/src/observers/map.rs +++ b/libafl/src/observers/map.rs @@ -186,7 +186,7 @@ where #[allow(clippy::unsafe_derive_deserialize)] pub struct StdMapObserver<'a, T> where - T: PrimInt + Default + Copy + 'static + Serialize + serde::de::DeserializeOwned, + T: PrimInt + Default + Copy + 'static + Serialize, { map: OwnedSliceMut<'a, T>, initial: T, @@ -393,7 +393,7 @@ where #[allow(clippy::unsafe_derive_deserialize)] pub struct ConstMapObserver<'a, T, const N: usize> where - T: PrimInt + Default + Copy + 'static + Serialize + serde::de::DeserializeOwned, + T: PrimInt + Default + Copy + 'static + Serialize, { map: OwnedSliceMut<'a, T>, initial: T, @@ -587,7 +587,7 @@ where #[allow(clippy::unsafe_derive_deserialize)] pub struct VariableMapObserver<'a, T> where - T: PrimInt + Default + Copy + 'static + Serialize + serde::de::DeserializeOwned, + T: PrimInt + Default + Copy + 'static + Serialize, { map: OwnedSliceMut<'a, T>, size: OwnedRefMut<'a, usize>, @@ -773,7 +773,7 @@ where #[serde(bound = "M: serde::de::DeserializeOwned")] pub struct HitcountsMapObserver where - M: Serialize + serde::de::DeserializeOwned, + M: Serialize, { base: M, } @@ -957,7 +957,7 @@ where #[allow(clippy::unsafe_derive_deserialize)] pub struct MultiMapObserver<'a, T> where - T: PrimInt + Default + Copy + 'static + Serialize + serde::de::DeserializeOwned + Debug, + T: PrimInt + Default + Copy + 'static + Serialize + Debug, { maps: Vec>, intervals: IntervalTree, @@ -1187,7 +1187,7 @@ where #[allow(clippy::unsafe_derive_deserialize)] pub struct OwnedMapObserver where - T: PrimInt + Default + Copy + 'static + Serialize + serde::de::DeserializeOwned, + T: PrimInt + Default + Copy + 'static + Serialize, { map: Vec, initial: T, diff --git a/libafl/src/observers/mod.rs b/libafl/src/observers/mod.rs index c6ec5e23e2..5c3fc1ef94 100644 --- a/libafl/src/observers/mod.rs +++ b/libafl/src/observers/mod.rs @@ -238,7 +238,7 @@ impl Named for TimeObserver { #[serde(bound = "T: serde::de::DeserializeOwned")] pub struct ListObserver<'a, T> where - T: Debug + Serialize + serde::de::DeserializeOwned, + T: Debug + Serialize, { name: String, /// The list