From 73f5cc57be5d33b35320bf6a14da3f40f004649d Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Wed, 10 Jan 2018 21:56:02 +0300 Subject: [PATCH] fixed warning (#7519) --- secret_store/src/key_server_cluster/cluster.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;