From 124fe8276214fbd1e3267600467c8d5246cae057 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 4 Dec 2025 17:07:31 +0100 Subject: [PATCH] nak: drop "deref on an immutable reference" Part-of: --- src/nouveau/compiler/nak/sm30_instr_latencies.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/nouveau/compiler/nak/sm30_instr_latencies.rs b/src/nouveau/compiler/nak/sm30_instr_latencies.rs index 53561ad543d..344dd327002 100644 --- a/src/nouveau/compiler/nak/sm30_instr_latencies.rs +++ b/src/nouveau/compiler/nak/sm30_instr_latencies.rs @@ -125,11 +125,8 @@ where // --- Real encoding --- // Create an instruction iterator and iterate it in chunks of 7. // fill the last chunk with a nop (it should never be executed). - let mut instr_iter = func - .blocks - .iter() - .flat_map(|b| b.instrs.iter().map(|x| &*x)) - .peekable(); + let mut instr_iter = + func.blocks.iter().flat_map(|b| b.instrs.iter()).peekable(); let mut filling_instr = Instr { pred: true.into(), op: Op::Nop(OpNop { label: None }),