chore: bump toolchain (#52)
This commit is contained in:
+1
-1
@@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "1.85.0"
|
||||
channel = "1.93.1"
|
||||
components = ["clippy", "llvm-tools-preview", "rustfmt"]
|
||||
|
||||
+1
-2
@@ -150,8 +150,7 @@ impl WolPacket {
|
||||
|
||||
/// Extends the MAC address to fill the magic packet
|
||||
fn extend_mac(mac: &[u8]) -> ArrayVec<u8, { MAC_SIZE * MAC_PER_MAGIC }> {
|
||||
let magic = iter::repeat(mac)
|
||||
.take(MAC_PER_MAGIC)
|
||||
let magic = iter::repeat_n(mac, MAC_PER_MAGIC)
|
||||
.flatten()
|
||||
.copied()
|
||||
.collect::<ArrayVec<u8, { MAC_SIZE * MAC_PER_MAGIC }>>();
|
||||
|
||||
Reference in New Issue
Block a user