rusticl/kernel: silence newer clippy warning

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24061>
This commit is contained in:
Karol Herbst
2023-07-10 15:09:20 +02:00
committed by Marge Bot
parent a1c1cce9df
commit 5bd235189a
+1 -1
View File
@@ -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,
];