Skip to content

Commit d33db5d

Browse files
committed
default const generic values so that we don't need to change this everywhere
1 parent bd8ef2b commit d33db5d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

libafl/src/observers/map.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,13 @@ where
352352
#[derive(Clone, Serialize, Deserialize, Debug)]
353353
#[serde(bound = "T: serde::de::DeserializeOwned")]
354354
#[allow(clippy::unsafe_derive_deserialize)]
355-
pub struct StdMapObserver<'a, T, const DIFFERENTIAL: bool, const ITH: bool, const NTH: bool>
356-
where
355+
pub struct StdMapObserver<
356+
'a,
357+
T,
358+
const DIFFERENTIAL: bool,
359+
const ITH: bool = false,
360+
const NTH: bool = false,
361+
> where
357362
T: Default + Copy + 'static + Serialize,
358363
{
359364
map: OwnedMutSlice<'a, T>,

0 commit comments

Comments
 (0)