nak: silence clippy warning about x * 0

It is useful to keep here to show that there is an offset, even though
it's zero on these two first lines.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
Eric Engestrom 2025-10-04 17:29:18 +02:00
parent 85b7386158
commit 0a529a908f

View file

@ -1727,6 +1727,7 @@ fn test_op_ldsm() {
// //
// and each thread loads from the address from thread (thread_id >> 4) // and each thread loads from the address from thread (thread_id >> 4)
// plus the offset (thread_id & 0x3) * 2 // plus the offset (thread_id & 0x3) * 2
#[expect(clippy::erasing_op)]
for i in 0..32 { for i in 0..32 {
assert_eq!(i * 2 + 64 * 0 + 0, data[i][8].into()); assert_eq!(i * 2 + 64 * 0 + 0, data[i][8].into());
assert_eq!(i * 2 + 64 * 0 + 1, data[i][9].into()); assert_eq!(i * 2 + 64 * 0 + 1, data[i][9].into());