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