From f9dc3681376876e860c024179f139071e3513d0b Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sat, 29 Jun 2019 17:32:31 +0200 Subject: [PATCH] Improve the coding style --- opensmtpd/src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/opensmtpd/src/lib.rs b/opensmtpd/src/lib.rs index 4d307e3..9588439 100644 --- a/opensmtpd/src/lib.rs +++ b/opensmtpd/src/lib.rs @@ -89,9 +89,11 @@ impl SmtpIn { 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();