Skip to content

Commit

Permalink
clippy: deal with clippy errors
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Wekesa <[email protected]>
  • Loading branch information
Paul-weqe committed Oct 17, 2024
1 parent f6ebe26 commit d1e81ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holo-vrrp/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit d1e81ba

Please sign in to comment.