summaryrefslogtreecommitdiffstats
path: root/renderer
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-18 10:02:50 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-18 10:02:50 +0100
commit1701ec815d3f25ea8097e806081e7a3ac9ba4d82 (patch)
treee7a71c1fad00749537cb50ad0d9ff492f03656b6 /renderer
parent4c90ed6a1b50331d889d79aacbf653fc6d98950f (diff)
downloadiced-1701ec815d3f25ea8097e806081e7a3ac9ba4d82.tar.gz
iced-1701ec815d3f25ea8097e806081e7a3ac9ba4d82.tar.bz2
iced-1701ec815d3f25ea8097e806081e7a3ac9ba4d82.zip
Remove redundant `ref mut` in `iced_renderer::compositor`
Diffstat (limited to 'renderer')
-rw-r--r--renderer/src/compositor.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/renderer/src/compositor.rs b/renderer/src/compositor.rs
index a7c63444..0b56f101 100644
--- a/renderer/src/compositor.rs
+++ b/renderer/src/compositor.rs
@@ -113,7 +113,7 @@ impl<Theme> crate::graphics::Compositor for Compositor<Theme> {
(
Self::TinySkia(_compositor),
crate::Renderer::TinySkia(renderer),
- Surface::TinySkia(ref mut surface),
+ Surface::TinySkia(surface),
) => renderer.with_primitives(|backend, primitives| {
iced_tiny_skia::window::compositor::present(
backend,
@@ -128,7 +128,7 @@ impl<Theme> crate::graphics::Compositor for Compositor<Theme> {
(
Self::Wgpu(compositor),
crate::Renderer::Wgpu(renderer),
- Surface::Wgpu(ref mut surface),
+ Surface::Wgpu(surface),
) => renderer.with_primitives(|backend, primitives| {
iced_wgpu::window::compositor::present(
compositor,
@@ -160,7 +160,7 @@ impl<Theme> crate::graphics::Compositor for Compositor<Theme> {
(
Self::TinySkia(_compositor),
Renderer::TinySkia(renderer),
- Surface::TinySkia(ref mut surface),
+ Surface::TinySkia(surface),
) => renderer.with_primitives(|backend, primitives| {
iced_tiny_skia::window::compositor::screenshot(
surface,