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); } _ => {}