diff --git a/secret_store/src/key_server_cluster/cluster.rs b/secret_store/src/key_server_cluster/cluster.rs index 913c13bbf..9312ad58e 100644 --- a/secret_store/src/key_server_cluster/cluster.rs +++ b/secret_store/src/key_server_cluster/cluster.rs @@ -688,7 +688,7 @@ impl ClusterConnections { pub fn remove(&self, data: Arc, node: &NodeId, is_inbound: bool) { { - let mut data = &mut *self.data.write(); + let mut data = self.data.write(); if let Entry::Occupied(entry) = data.connections.entry(node.clone()) { if entry.get().is_inbound() != is_inbound { return;