wireguard-control: make cargo clippy happy

pull/186/head
Jake McGinty 2022-01-09 23:12:28 -06:00
parent a122077473
commit a95fa1b03e
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ impl ApplyPayload {
fn flush_nlas(&mut self) {
// // cleanup: clear out any empty peer lists.
self.nlas
.retain(|nla| !matches!(nla, WgDeviceAttrs::Peers(peers) if peers.len() == 0));
.retain(|nla| !matches!(nla, WgDeviceAttrs::Peers(peers) if peers.is_empty()));
let name = WgDeviceAttrs::IfName(self.iface.clone());
self.current_buffer_len = name.buffer_len();