From 45dc882b4937835c7222626a3c7691474e7b5f0f Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sun, 6 Jan 2019 16:40:53 +0100 Subject: [PATCH] Remove useless use of methods --- opensmtpd/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensmtpd/src/lib.rs b/opensmtpd/src/lib.rs index c520ba0..0babb7d 100644 --- a/opensmtpd/src/lib.rs +++ b/opensmtpd/src/lib.rs @@ -100,7 +100,7 @@ impl SmtpIn { handlers_tx.send(h.clone())?; } self.sessions.insert(entry.session_id, (entry_tx, handle)); - let (r, _) = self.sessions.get(&entry.session_id).unwrap(); + let (r, _) = &self.sessions[&entry.session_id]; r } };