rusticl/types: fix clippy new() not returning Self

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23129>
This commit is contained in:
norablackcat 2023-05-19 10:21:33 -06:00 committed by Marge Bot
parent 3d73bd48c0
commit 29d324cc75

View file

@ -228,7 +228,7 @@ pub fn create_program_with_binary(
// just return the last one
err = dev_err;
bins[i] = unsafe { slice::from_raw_parts(binaries[i], lengths[i] as usize) };
bins[i] = unsafe { slice::from_raw_parts(binaries[i], lengths[i]) };
}
if err != 0 {