Improve the coding style
This commit is contained in:
parent
4a99257263
commit
f9dc368137
1 changed files with 5 additions and 3 deletions
|
@ -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() {
|
||||
MatchEvent::Evt(ref v) => {
|
||||
for e in v.iter() {
|
||||
evts.push(e);
|
||||
},
|
||||
}
|
||||
}
|
||||
MatchEvent::All => {
|
||||
println!("register|report|smtp-in|*");
|
||||
evts.clear();
|
||||
|
|
Reference in a new issue