From 3f6c6b7b029730e01bd18480f162a2eae692744f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sun, 29 Mar 2020 15:22:17 +0200 Subject: [PATCH] Remove unnecessary `clone` call in `Transformation` --- wgpu/src/transformation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/src/transformation.rs b/wgpu/src/transformation.rs index 666696f3..c991f330 100644 --- a/wgpu/src/transformation.rs +++ b/wgpu/src/transformation.rs @@ -49,6 +49,6 @@ impl AsRef<[f32; 16]> for Transformation { impl From for [f32; 16] { fn from(t: Transformation) -> [f32; 16] { - t.as_ref().clone() + *t.as_ref() } }