Skip to content

Commit

Permalink
vrrp: fix linter
Browse files Browse the repository at this point in the history
work on fmt and clippy errors

Signed-off-by: Paul Wekesa <[email protected]>
  • Loading branch information
Paul-weqe committed Oct 22, 2024
1 parent fb3ca5a commit 62dec6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions holo-tools/src/replay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,6 @@ async fn main() {
eprintln!("Unsupported protocol type");
std::process::exit(1);
}
Protocol::VRRP => todo!(),
}
}
5 changes: 2 additions & 3 deletions holo-vrrp/src/northbound/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ use holo_northbound::yang::interfaces;
use holo_utils::yang::DataNodeRefExt;
use ipnetwork::Ipv4Network;

use crate::instance::Event as LastEvent;
use crate::instance::Instance;
use crate::instance::{Event as LastEvent, Instance};
use crate::interface::Interface;

#[derive(Debug, Default, EnumAsInner)]
Expand Down Expand Up @@ -72,7 +71,7 @@ fn load_callbacks() -> Callbacks<Interface> {
.create_apply(|interface, args| {
let vrid = args.dnode.get_u8_relative("./vrid").unwrap();
let mut instance = Instance::new(vrid);
instance.state.last_event = LastEvent::Startup;
instance.state.last_event = LastEvent::Startup;
interface.instances.insert(vrid, instance);

let event_queue = args.event_queue;
Expand Down

0 comments on commit 62dec6e

Please sign in to comment.