Remove useless use of methods

This commit is contained in:
Rodolphe Breard 2019-01-06 16:40:53 +01:00
parent 074c3697d0
commit 45dc882b49

View file

@ -100,7 +100,7 @@ impl SmtpIn {
handlers_tx.send(h.clone())?; handlers_tx.send(h.clone())?;
} }
self.sessions.insert(entry.session_id, (entry_tx, handle)); 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 r
} }
}; };