From d1e81babde43c0f91762c9e4ff664ce6559fdfec Mon Sep 17 00:00:00 2001 From: Paul Wekesa Date: Thu, 17 Oct 2024 16:05:40 +0300 Subject: [PATCH] clippy: deal with clippy errors Signed-off-by: Paul Wekesa --- holo-vrrp/src/interface.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/holo-vrrp/src/interface.rs b/holo-vrrp/src/interface.rs index e429585b..0297b20d 100644 --- a/holo-vrrp/src/interface.rs +++ b/holo-vrrp/src/interface.rs @@ -120,7 +120,7 @@ impl Interface { // lets us know if the interface is ready to create a new VRRP // instance's network elements. pub(crate) fn is_ready(&self) -> bool { - if !self.system.ifindex.is_some() { + if self.system.ifindex.is_none() { return false; } if self.system.addresses.is_empty() { @@ -311,7 +311,7 @@ impl Interface { if let Some(vrid) = vrid { vrids.push(vrid) } else { - for (vrid, _instance) in &self.instances { + for vrid in self.instances.keys() { vrids.push(*vrid); } }