mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-11-22 08:13:59 +00:00
fix(compositor): collapse nested submit condition in winit backend
The nested if around backend.submit failed clippy::collapsible_if under -D warnings, breaking the linux-only clippy job. Use a let chain instead.
This commit is contained in:
parent
b99cc73a47
commit
b05291e999
1 changed files with 2 additions and 4 deletions
|
|
@ -157,11 +157,9 @@ pub fn run() -> anyhow::Result<()> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if render_ok {
|
if render_ok && let Err(e) = backend.submit(Some(&[full_damage])) {
|
||||||
if let Err(e) = backend.submit(Some(&[full_damage])) {
|
|
||||||
tracing::warn!(?e, "backend submit failed");
|
tracing::warn!(?e, "backend submit failed");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
state.space.elements().for_each(|window| {
|
state.space.elements().for_each(|window| {
|
||||||
window.send_frame(
|
window.send_frame(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue