From cd9e9fe34426d62eba1fca0674ce634389aef229 Mon Sep 17 00:00:00 2001 From: osmaczko <33099791+osmaczko@users.noreply.github.com> Date: Fri, 21 Aug 2026 09:25:20 +0200 Subject: [PATCH] chore: walk the device bundle in fixed-size chunks Stable clippy rejects `chunks_exact` with a constant size in favour of `as_chunks`, which fails the lint job for the whole workspace, and reading fixed arrays out of the slice drops the length check the old code carried as an `expect`. --- core/account/src/directory.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/account/src/directory.rs b/core/account/src/directory.rs index 0814889..0971616 100644 --- a/core/account/src/directory.rs +++ b/core/account/src/directory.rs @@ -156,12 +156,12 @@ pub fn decode_bundle_payload(payload: &[u8]) -> Result(); - Ok(DecodedBundle { lamport, devices }) + Ok(DecodedBundle { + lamport, + devices: devices.to_vec(), + }) } /// Decode `bundle`, confirm it belongs to `expected_account`, and verify the