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
64f8cff6fd
commit
1e19326d39
1 changed files with 2 additions and 4 deletions
|
|
@ -157,11 +157,9 @@ pub fn run() -> anyhow::Result<()> {
|
|||
false
|
||||
}
|
||||
};
|
||||
if render_ok {
|
||||
if let Err(e) = backend.submit(Some(&[full_damage])) {
|
||||
if render_ok && let Err(e) = backend.submit(Some(&[full_damage])) {
|
||||
tracing::warn!(?e, "backend submit failed");
|
||||
}
|
||||
}
|
||||
|
||||
state.space.elements().for_each(|window| {
|
||||
window.send_frame(
|
||||
|
|
|
|||
Loading…
Reference in a new issue