From f46fb878646bff944c94dd68d67e4bee38814c48 Mon Sep 17 00:00:00 2001 From: Teknique Date: Tue, 23 May 2023 11:04:36 -0700 Subject: [PATCH] Remove extra parens that annoy `cargo check` --- veilid-core/src/network_manager/connection_table.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/veilid-core/src/network_manager/connection_table.rs b/veilid-core/src/network_manager/connection_table.rs index 0a09eb21..b0879150 100644 --- a/veilid-core/src/network_manager/connection_table.rs +++ b/veilid-core/src/network_manager/connection_table.rs @@ -187,7 +187,7 @@ impl ConnectionTable { pub fn get_last_connection_by_remote(&self, remote: PeerAddress) -> Option { 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 out = inner.conn_by_id[protocol_index].get(&id).unwrap(); Some(out.get_handle())