cargo fmt
This commit is contained in:
parent
7e65193d53
commit
26763f77d0
@ -14,13 +14,13 @@ use serde::{Deserialize, Serialize};
|
|||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
|
||||||
use crate::{corpus::Corpus, serde_anymap::SerdeAny};
|
|
||||||
use crate::engines::State;
|
use crate::engines::State;
|
||||||
use crate::executors::Executor;
|
use crate::executors::Executor;
|
||||||
use crate::inputs::Input;
|
use crate::inputs::Input;
|
||||||
use crate::serde_anymap::{Ptr, PtrMut};
|
use crate::serde_anymap::{Ptr, PtrMut};
|
||||||
use crate::utils::Rand;
|
use crate::utils::Rand;
|
||||||
use crate::AflError;
|
use crate::AflError;
|
||||||
|
use crate::{corpus::Corpus, serde_anymap::SerdeAny};
|
||||||
|
|
||||||
/// Indicate if an event worked or not
|
/// Indicate if an event worked or not
|
||||||
pub enum BrokerEventResult {
|
pub enum BrokerEventResult {
|
||||||
@ -132,7 +132,9 @@ where
|
|||||||
phantom: _,
|
phantom: _,
|
||||||
} => "Log",
|
} => "Log",
|
||||||
Event::None { phantom: _ } => "None",
|
Event::None { phantom: _ } => "None",
|
||||||
Event::Custom {sender_id, /*custom_event} => custom_event.name()*/} => "todo",
|
Event::Custom {
|
||||||
|
sender_id, /*custom_event} => custom_event.name()*/
|
||||||
|
} => "todo",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,7 +155,6 @@ where
|
|||||||
phantom: PhantomData,
|
phantom: PhantomData,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait EventManager<C, E, I, R>
|
pub trait EventManager<C, E, I, R>
|
||||||
@ -230,11 +231,11 @@ where
|
|||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
println!("{}[{}]: {}", sender_id, severity_level, message);
|
println!("{}[{}]: {}", sender_id, severity_level, message);
|
||||||
Ok(BrokerEventResult::Handled)
|
Ok(BrokerEventResult::Handled)
|
||||||
},
|
}
|
||||||
Event::None {
|
Event::None { phantom: _ } => Ok(BrokerEventResult::Handled),
|
||||||
phantom: _,
|
Event::Custom {
|
||||||
} => Ok(BrokerEventResult::Handled),
|
sender_id, /*custom_event} => custom_event.handle_in_broker(state, corpus)*/
|
||||||
Event::Custom {sender_id, /*custom_event} => custom_event.handle_in_broker(state, corpus)*/} => Ok(BrokerEventResult::Forward),
|
} => Ok(BrokerEventResult::Forward),
|
||||||
//_ => Ok(BrokerEventResult::Forward),
|
//_ => Ok(BrokerEventResult::Forward),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -475,11 +476,11 @@ where
|
|||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
println!("{}[{}]: {}", sender_id, severity_level, message);
|
println!("{}[{}]: {}", sender_id, severity_level, message);
|
||||||
Ok(BrokerEventResult::Handled)
|
Ok(BrokerEventResult::Handled)
|
||||||
},
|
}
|
||||||
Event::None {
|
Event::None { phantom: _ } => Ok(BrokerEventResult::Handled),
|
||||||
phantom: _,
|
Event::Custom {
|
||||||
} => Ok(BrokerEventResult::Handled),
|
sender_id, /*custom_event} => custom_event.handle_in_broker(state, corpus)*/
|
||||||
Event::Custom {sender_id, /*custom_event} => custom_event.handle_in_broker(state, corpus)*/} => Ok(BrokerEventResult::Forward),
|
} => Ok(BrokerEventResult::Forward),
|
||||||
//_ => Ok(BrokerEventResult::Forward),
|
//_ => Ok(BrokerEventResult::Forward),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user