Skip to content

Commit b689301

Browse files
committed
Clippy
1 parent 141b1be commit b689301

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

crates/processing_render/src/surface.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,9 @@ pub fn resize(
411411

412412
// SurfaceSize changes on resize, if not handled will break APIs dependent on correct SurfaceSize
413413
for (target, mut surface_size) in graphics_query.iter_mut() {
414-
if let RenderTarget::Window(WindowRef::Entity(surface)) = *target {
415-
if surface == window_entity {
416-
*surface_size = SurfaceSize(width, height);
417-
}
414+
if let RenderTarget::Window(WindowRef::Entity(surface)) = *target
415+
&& surface == window_entity {
416+
*surface_size = SurfaceSize(width, height);
418417
}
419418
}
420419
Ok(())

0 commit comments

Comments
 (0)