nil: Fix a couple of clippy lints

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36849>
This commit is contained in:
Faith Ekstrand 2025-08-19 11:28:30 -04:00 committed by Marge Bot
parent e6c32c7b92
commit 02f509a9d0
2 changed files with 2 additions and 2 deletions

View file

@ -589,7 +589,7 @@ fn nvcb97_fill_image_view_desc(
view.base_array_layer + view.array_len <= image.extent_px.array_len
);
layer_address +=
u64::from(view.base_array_layer) * u64::from(image.array_stride_B);
u64::from(view.base_array_layer) * image.array_stride_B;
}
if tiling.is_tiled() {

View file

@ -755,7 +755,7 @@ impl Image {
fn gb202_choose_pte_kind(_format: Format, _compressed: bool) -> u8 {
use nvidia_headers::hwref::tu102::mmu::*;
return NV_MMU_PTE_KIND_GENERIC_MEMORY.try_into().unwrap();
NV_MMU_PTE_KIND_GENERIC_MEMORY.try_into().unwrap()
}
fn tu102_choose_pte_kind(format: Format, compressed: bool) -> u8 {