summaryrefslogtreecommitdiffstats
path: root/renderer/src/compositor.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-21 06:03:31 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-21 06:03:31 +0100
commit7e4ae8450e1f28c15717ca5ca9748981af9c9541 (patch)
tree82465be8879be85464c13c4c876416bef804834d /renderer/src/compositor.rs
parent9171df1e356530410a7ceadadd78fd3dcf150dfd (diff)
downloadiced-7e4ae8450e1f28c15717ca5ca9748981af9c9541.tar.gz
iced-7e4ae8450e1f28c15717ca5ca9748981af9c9541.tar.bz2
iced-7e4ae8450e1f28c15717ca5ca9748981af9c9541.zip
Use `&mut dyn Surface` instead of `&mut Box<dyn Surface>`
Diffstat (limited to 'renderer/src/compositor.rs')
-rw-r--r--renderer/src/compositor.rs2
1 files changed, 1 insertions, 1 deletions
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!(