diff options
author | 2024-03-21 06:03:31 +0100 | |
---|---|---|
committer | 2024-03-21 06:03:31 +0100 | |
commit | 7e4ae8450e1f28c15717ca5ca9748981af9c9541 (patch) | |
tree | 82465be8879be85464c13c4c876416bef804834d /renderer/src/custom.rs | |
parent | 9171df1e356530410a7ceadadd78fd3dcf150dfd (diff) | |
download | iced-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/custom.rs')
-rw-r--r-- | renderer/src/custom.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/renderer/src/custom.rs b/renderer/src/custom.rs index 680aa0b5..04090ccb 100644 --- a/renderer/src/custom.rs +++ b/renderer/src/custom.rs @@ -153,7 +153,7 @@ pub trait Compositor: std::any::Any { fn configure_surface( &mut self, - surface: &mut Box<dyn Surface>, + surface: &mut dyn Surface, width: u32, height: u32, ); |