From 044a46fd8fc87a433360fd9ba2d0285d33edebf2 Mon Sep 17 00:00:00 2001 From: Shiva Kiran Koninty Date: Thu, 27 Aug 2026 12:10:48 +0530 Subject: [PATCH] mmc: Replace `.chunks_exact()` with `.as_chunks()` to fix clippy lint --- src/mmc/get_config.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mmc/get_config.rs b/src/mmc/get_config.rs index 3ba63f0..1c6e375 100644 --- a/src/mmc/get_config.rs +++ b/src/mmc/get_config.rs @@ -491,7 +491,9 @@ impl MmcFeature { fn profile_list(dtor: &[u8]) -> Self { let data = &dtor[4..]; // skip the header let profiles = data - .chunks_exact(4) + .as_chunks::<4>() + .0 + .iter() .filter_map(|chunk| { let kind = read_u16(chunk); Some(MmcProfile {