From 86879ffcfee067b9710633d44e6977e19e2f6e5b Mon Sep 17 00:00:00 2001 From: Hubert Date: Mon, 2 Mar 2026 11:33:03 +0100 Subject: [PATCH] chore: bump toolchain (#52) --- rust-toolchain.toml | 2 +- wakey/src/lib.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index bfb42a9..cdd24d6 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.85.0" +channel = "1.93.1" components = ["clippy", "llvm-tools-preview", "rustfmt"] diff --git a/wakey/src/lib.rs b/wakey/src/lib.rs index adb6a94..4f4f5a8 100644 --- a/wakey/src/lib.rs +++ b/wakey/src/lib.rs @@ -150,8 +150,7 @@ impl WolPacket { /// Extends the MAC address to fill the magic packet fn extend_mac(mac: &[u8]) -> ArrayVec { - let magic = iter::repeat(mac) - .take(MAC_PER_MAGIC) + let magic = iter::repeat_n(mac, MAC_PER_MAGIC) .flatten() .copied() .collect::>();