From 5e096398af1f27ff256d767f832f4ebbb133f153 Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Tue, 6 Aug 2024 18:34:50 +0859 Subject: [PATCH] chore: do fmt --- layershellev/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layershellev/src/lib.rs b/layershellev/src/lib.rs index e78e225..8bdf6ef 100644 --- a/layershellev/src/lib.rs +++ b/layershellev/src/lib.rs @@ -1845,9 +1845,9 @@ impl WindowState { }; self.units[index].layer_shell.destroy(); self.units[index].wl_surface.destroy(); - if let Some(buffer) = self.units[index] - .buffer - .as_ref() { buffer.destroy() } + if let Some(buffer) = self.units[index].buffer.as_ref() { + buffer.destroy() + } self.units.remove(index); } _ => {}