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();
|
let mut evts = Vec::new();
|
||||||
for eh in self.event_handlers.iter() {
|
for eh in self.event_handlers.iter() {
|
||||||
match eh.event {
|
match eh.event {
|
||||||
MatchEvent::Evt(ref v) => for e in v.iter() {
|
MatchEvent::Evt(ref v) => {
|
||||||
evts.push(e);
|
for e in v.iter() {
|
||||||
},
|
evts.push(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
MatchEvent::All => {
|
MatchEvent::All => {
|
||||||
println!("register|report|smtp-in|*");
|
println!("register|report|smtp-in|*");
|
||||||
evts.clear();
|
evts.clear();
|
||||||
|
|
Reference in a new issue