nak: fix clippy::needless_return warnings

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27234>
This commit is contained in:
Karol Herbst
2024-01-24 13:04:35 +01:00
committed by Marge Bot
parent 4b039abd7b
commit 06ff342ee1
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ fn jump_thread(func: &mut Function) -> bool {
rewrite_cfg(func);
}
return progress;
progress
}
fn rewrite_cfg(func: &mut Function) {

View File

@@ -22,7 +22,7 @@ fn src_as_bool(src: &Src) -> Option<bool> {
match src.src_ref {
SrcRef::Zero | SrcRef::False | SrcRef::Imm32(0) => Some(false),
SrcRef::True | SrcRef::Imm32(u32::MAX) => Some(true),
_ => return None,
_ => None,
}
}