Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yngrtc committed Sep 7, 2024
1 parent 7d5ee0a commit c28573f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions util/src/vnet/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,7 @@ impl Net {

Net::VNet(Arc::new(Mutex::new(vnet)))
} else {
let interfaces = match ifaces::ifaces() {
Ok(ifs) => ifs,
Err(_) => vec![],
};
let interfaces = ifaces::ifaces().unwrap_or_default();

let mut m: HashMap<String, Vec<IpNet>> = HashMap::new();
for iface in interfaces {
Expand Down

0 comments on commit c28573f

Please sign in to comment.