diff --git a/gossip/src/contact_info.rs b/gossip/src/contact_info.rs index d9470380aee87a..80ad5962e6b101 100644 --- a/gossip/src/contact_info.rs +++ b/gossip/src/contact_info.rs @@ -214,8 +214,8 @@ impl ContactInfo { self.sockets.insert(index, entry); } } - if let Some(entry) = self.cache.get_mut(usize::from(key)) { - *entry = socket; + if let Some(cache_entry) = self.cache.get_mut(usize::from(key)) { + *cache_entry = socket; } debug_assert_matches!(sanitize_entries(&self.addrs, &self.sockets), Ok(())); Ok(())