From 7e4ae8450e1f28c15717ca5ca9748981af9c9541 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 21 Mar 2024 06:03:31 +0100 Subject: Use `&mut dyn Surface` instead of `&mut Box` --- renderer/src/compositor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'renderer/src/compositor.rs') diff --git a/renderer/src/compositor.rs b/renderer/src/compositor.rs index 012ad3c0..3d0b3ad0 100644 --- a/renderer/src/compositor.rs +++ b/renderer/src/compositor.rs @@ -104,7 +104,7 @@ impl crate::graphics::Compositor for Compositor { } #[cfg(feature = "custom")] (Self::Custom(compositor), Surface::Custom(surface)) => { - compositor.configure_surface(surface, width, height); + compositor.configure_surface(surface.as_mut(), width, height); } #[allow(unreachable_patterns)] _ => panic!( -- cgit