mirror of
https://github.com/demostf/cutter.git
synced 2026-06-03 11:54:08 +02:00
more mutate
This commit is contained in:
parent
4e8b89353e
commit
4d83b57a02
2 changed files with 34 additions and 27 deletions
|
|
@ -90,8 +90,9 @@ impl MutatorList {
|
|||
self.mutators.push(Box::new(mutator))
|
||||
}
|
||||
|
||||
pub fn push_message_mutator<M: PacketMutator + 'static, T: Into<M>>(&mut self, mutator: T) {
|
||||
self.mutators.push(Box::new(mutator.into()))
|
||||
pub fn push_message_mutator<M: MessageMutator + 'static>(&mut self, mutator: M) {
|
||||
self.mutators
|
||||
.push(Box::new(PacketMessageMutator::from(mutator)))
|
||||
}
|
||||
|
||||
pub fn push_message_filter<M: MessageFilter + 'static>(&mut self, filter: M) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue