mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
Remove extra parens that annoy cargo check
This commit is contained in:
parent
1654d03ad2
commit
f46fb87864
@ -187,7 +187,7 @@ impl ConnectionTable {
|
|||||||
pub fn get_last_connection_by_remote(&self, remote: PeerAddress) -> Option<ConnectionHandle> {
|
pub fn get_last_connection_by_remote(&self, remote: PeerAddress) -> Option<ConnectionHandle> {
|
||||||
let mut inner = self.inner.lock();
|
let mut inner = self.inner.lock();
|
||||||
|
|
||||||
let id = inner.ids_by_remote.get(&remote).map(|v| v[(v.len() - 1)])?;
|
let id = inner.ids_by_remote.get(&remote).map(|v| v[v.len() - 1])?;
|
||||||
let protocol_index = Self::protocol_to_index(remote.protocol_type());
|
let protocol_index = Self::protocol_to_index(remote.protocol_type());
|
||||||
let out = inner.conn_by_id[protocol_index].get(&id).unwrap();
|
let out = inner.conn_by_id[protocol_index].get(&id).unwrap();
|
||||||
Some(out.get_handle())
|
Some(out.get_handle())
|
||||||
|
Loading…
Reference in New Issue
Block a user