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:
Marco Allegretti 2026-10-08 22:58:47 +00:00
parent 64f8cff6fd
commit 1e19326d39
No known key found for this signature in database

View file

@ -157,10 +157,8 @@ 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| {