wireguard-control: make cargo clippy happy
parent
a122077473
commit
a95fa1b03e
|
@ -263,7 +263,7 @@ impl ApplyPayload {
|
||||||
fn flush_nlas(&mut self) {
|
fn flush_nlas(&mut self) {
|
||||||
// // cleanup: clear out any empty peer lists.
|
// // cleanup: clear out any empty peer lists.
|
||||||
self.nlas
|
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());
|
let name = WgDeviceAttrs::IfName(self.iface.clone());
|
||||||
self.current_buffer_len = name.buffer_len();
|
self.current_buffer_len = name.buffer_len();
|
||||||
|
|
Loading…
Reference in New Issue