Skip to content

Commit e074a0d

Browse files
Remove HasConstLen supertrait from NamedTuple (#3436)
Co-authored-by: Dongjia "toka" Zhang <[email protected]>
1 parent 139e51d commit e074a0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/libafl/src/mutators/mopt_mutator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use core::fmt::{self, Debug};
88
use libafl_bolts::{
99
Named,
1010
rands::{Rand, StdRand},
11-
tuples::NamedTuple,
11+
tuples::{HasConstLen, NamedTuple},
1212
};
1313
use serde::{Deserialize, Serialize};
1414

@@ -502,7 +502,7 @@ impl<MT> StdMOptMutator<MT> {
502502
) -> Result<Self, Error>
503503
where
504504
S: HasMetadata + HasRand,
505-
MT: NamedTuple,
505+
MT: NamedTuple + HasConstLen,
506506
{
507507
if !state.has_metadata::<MOpt>() {
508508
let rand_seed = state.rand_mut().next();

crates/libafl_bolts/src/tuples.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ where
386386

387387
#[cfg(feature = "alloc")]
388388
/// A named tuple
389-
pub trait NamedTuple: HasConstLen {
389+
pub trait NamedTuple {
390390
/// Gets the name of this tuple
391391
fn name(&self, index: usize) -> Option<&Cow<'static, str>>;
392392

0 commit comments

Comments
 (0)