From 5bd235189ad71712bf04beb8672d2df58f77df4b Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Mon, 10 Jul 2023 15:09:20 +0200 Subject: [PATCH] rusticl/kernel: silence newer clippy warning Part-of: --- src/gallium/frontends/rusticl/core/kernel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/rusticl/core/kernel.rs b/src/gallium/frontends/rusticl/core/kernel.rs index 5fcaf650b86..1298e1fc108 100644 --- a/src/gallium/frontends/rusticl/core/kernel.rs +++ b/src/gallium/frontends/rusticl/core/kernel.rs @@ -1240,7 +1240,7 @@ impl Kernel { } let block = [ - *block.get(0).unwrap_or(&1) as u32, + *block.first().unwrap_or(&1) as u32, *block.get(1).unwrap_or(&1) as u32, *block.get(2).unwrap_or(&1) as u32, ];