Skip to content

Commit

Permalink
vrrp: clippy
Browse files Browse the repository at this point in the history
Format creation of new MacVlanInterface
as recommended by clippy

Signed-off-by: Paul Wekesa <[email protected]>
  • Loading branch information
Paul-weqe committed Sep 18, 2024
1 parent dde744a commit ce7e673
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions holo-vrrp/src/northbound/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,10 @@ impl Provider for Interface {
// ===== impl InstanceCfg ====
impl InstanceCfg {
pub fn new(vrid: u8) -> Self {
let mut cfg = InstanceCfg::default();
cfg.mac_vlan = MacVlanInterface::new(vrid);
cfg
Self {
mac_vlan: MacVlanInterface::new(vrid),
..Default::default()
}
}
}

Expand Down

0 comments on commit ce7e673

Please sign in to comment.