File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -285,11 +285,10 @@ mod tests {
285
285
& self . vec
286
286
}
287
287
}
288
- impl DefaultMutators < MappedHavocMutationsType < Self , MutVecInput < ' static > , & ' static [ u8 ] > >
289
- for CustomInput
290
- {
291
- fn default_mutators (
292
- ) -> MappedHavocMutationsType < Self , MutVecInput < ' static > , & ' static [ u8 ] > {
288
+ impl DefaultMutators for CustomInput {
289
+ type Type = MappedHavocMutationsType < Self , MutVecInput < ' static > , & ' static [ u8 ] > ;
290
+
291
+ fn default_mutators ( ) -> Self :: Type {
293
292
mapped_havoc_mutations ( Self :: vec_mut, Self :: vec)
294
293
}
295
294
}
Original file line number Diff line number Diff line change @@ -399,8 +399,10 @@ impl Named for NopMutator {
399
399
}
400
400
401
401
/// Extensions of [`crate::inputs::Input`]s that have default mutators
402
- pub trait DefaultMutators < MT > {
402
+ pub trait DefaultMutators {
403
+ /// The resulting mutator list type
404
+ type Type ;
403
405
/// Get the default mutators for this type
404
406
#[ must_use]
405
- fn default_mutators ( ) -> MT ;
407
+ fn default_mutators ( ) -> Self :: Type ;
406
408
}
You can’t perform that action at this time.
0 commit comments