chore: bump toolchain (#52)

This commit is contained in:
Hubert
2026-03-02 11:33:03 +01:00
committed by GitHub
parent 273a0ab858
commit 86879ffcfe
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.85.0"
channel = "1.93.1"
components = ["clippy", "llvm-tools-preview", "rustfmt"]
+1 -2
View File
@@ -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 }>>();