rust/spirv: fix clippy lint on unneeded late initialization
Signed-off-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27232>
This commit is contained in:
@@ -190,14 +190,13 @@ impl SPIRVBin {
|
||||
let mut out = clc_binary::default();
|
||||
let res = unsafe { clc_link_spirv(&linker_args, &logger, &mut out) };
|
||||
|
||||
let info;
|
||||
if !library && res {
|
||||
let info = if !library && res {
|
||||
let mut pspirv = clc_parsed_spirv::default();
|
||||
let res = unsafe { clc_parse_spirv(&out, &logger, &mut pspirv) };
|
||||
info = res.then_some(pspirv);
|
||||
res.then_some(pspirv)
|
||||
} else {
|
||||
info = None;
|
||||
}
|
||||
None
|
||||
};
|
||||
|
||||
let res = res.then_some(SPIRVBin {
|
||||
spirv: out,
|
||||
|
Reference in New Issue
Block a user