Updating nom to 4.2

This commit is contained in:
Rodolphe Breard 2019-03-03 15:23:31 +01:00
parent 22c376930b
commit 866298c948
3 changed files with 6 additions and 12 deletions

View file

@ -89,11 +89,9 @@ impl<T: Clone + Default + 'static> SmtpIn<T> {
let mut evts = Vec::new();
for eh in self.event_handlers.iter() {
match eh.event {
MatchEvent::Evt(ref v) => {
for e in v.iter() {
evts.push(e);
}
}
MatchEvent::Evt(ref v) => for e in v.iter() {
evts.push(e);
},
MatchEvent::All => {
println!("register|report|smtp-in|*");
evts.clear();