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 } };