diff --git a/wgpu-types/src/texture.rs b/wgpu-types/src/texture.rs index ae8e44848..1813dcb4f 100644 --- a/wgpu-types/src/texture.rs +++ b/wgpu-types/src/texture.rs @@ -531,11 +531,8 @@ impl TextureDescriptor { pub fn map_label_and_view_formats( &self, l_fun: impl FnOnce(&L) -> K, - v_fun: impl FnOnce(V) -> M, - ) -> TextureDescriptor - where - V: Clone, - { + v_fun: impl FnOnce(&V) -> M, + ) -> TextureDescriptor { TextureDescriptor { label: l_fun(&self.label), size: self.size, @@ -544,7 +541,7 @@ impl TextureDescriptor { dimension: self.dimension, format: self.format, usage: self.usage, - view_formats: v_fun(self.view_formats.clone()), + view_formats: v_fun(&self.view_formats), } }