mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-28 06:23:08 -08:00
chore: Clippy fixes on wireguard-broker
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user