Improve the coding style

This commit is contained in:
Rodolphe Breard 2019-06-29 17:32:31 +02:00
parent 4a99257263
commit f9dc368137

View file

@ -89,9 +89,11 @@ 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();