mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 10:48:21 +02:00
nak: fix clippy::needless_return warnings
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27234>
This commit is contained in:
parent
4b039abd7b
commit
06ff342ee1
2 changed files with 2 additions and 2 deletions
|
|
@ -86,7 +86,7 @@ fn jump_thread(func: &mut Function) -> bool {
|
|||
rewrite_cfg(func);
|
||||
}
|
||||
|
||||
return progress;
|
||||
progress
|
||||
}
|
||||
|
||||
fn rewrite_cfg(func: &mut Function) {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue