From 754a2a35e8803b5aa5fbe3f94223abfe40d90a50 Mon Sep 17 00:00:00 2001 From: Paul Wekesa Date: Thu, 12 Sep 2024 16:53:58 +0300 Subject: [PATCH] format: deal with clippy recommendations Signed-off-by: Paul Wekesa --- holo-interface/src/northbound/configuration.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/holo-interface/src/northbound/configuration.rs b/holo-interface/src/northbound/configuration.rs index 7305fa67..e9071f50 100644 --- a/holo-interface/src/northbound/configuration.rs +++ b/holo-interface/src/northbound/configuration.rs @@ -75,10 +75,9 @@ fn load_callbacks() -> Callbacks { let event_queue = args.event_queue; event_queue.insert(Event::VrrpStart(ifname)); }) - .create_prepare(|master, args| { + .create_prepare(|master, args| { let ifname = args.dnode.get_string_relative("./name").unwrap(); master.interfaces.add(ifname.clone()); - let event_queue = args.event_queue; event_queue.insert(Event::VrrpStart(ifname));