rusticl: fix warnings with newer rustc

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24315>
This commit is contained in:
Karol Herbst 2023-07-25 11:20:28 +02:00 committed by Marge Bot
parent 94f36cfaa3
commit 2d902dbf02

View file

@ -553,7 +553,7 @@ impl Program {
return false;
}
let mut d = info.dev_build_mut(dev);
let d = info.dev_build_mut(dev);
// skip compilation if we already have the right thing.
if self.is_bin() {
@ -594,7 +594,7 @@ impl Program {
headers: &[spirv::CLCHeader],
info: &mut MutexGuard<ProgramBuild>,
) -> bool {
let mut d = info.dev_build_mut(dev);
let d = info.dev_build_mut(dev);
let (spirv, log) = match &self.src {
ProgramSourceType::Il(spirv) => {