From a948ff8829b2cacad39ef11460000b0328ba1e02 Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Mon, 20 Dec 2021 13:40:08 +0100 Subject: [PATCH] space: commit does not need mutable self --- src/desktop/space.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/desktop/space.rs b/src/desktop/space.rs index a0836b9..1dd1828 100644 --- a/src/desktop/space.rs +++ b/src/desktop/space.rs @@ -401,7 +401,7 @@ impl Space { /// Automatically calls `Window::refresh` for the window that belongs to the given surface, /// if managed by this space. - pub fn commit(&mut self, surface: &WlSurface) { + pub fn commit(&self, surface: &WlSurface) { if is_sync_subsurface(surface) { return; }