chore: Clippy fixes on wireguard-broker

This commit is contained in:
Karolin Varner
2024-08-03 15:02:49 +02:00
parent 54ac5eecdb
commit 648a94ead8
9 changed files with 28 additions and 34 deletions

View File

@@ -42,7 +42,7 @@ impl SetPskRequest {
self.iface_size = iface.len() as u8;
self.iface_buf = [0; 255];
(&mut self.iface_buf[..iface.len()]).copy_from_slice(iface);
self.iface_buf[..iface.len()].copy_from_slice(iface);
Some(())
}