From 7e22e2d45293c5916812be03dc7367134b69b3ad Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 3 Nov 2022 04:53:27 +0100 Subject: Fix lints by `clippy` --- graphics/src/transformation.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'graphics/src/transformation.rs') diff --git a/graphics/src/transformation.rs b/graphics/src/transformation.rs index 116b3058..cf0457a4 100644 --- a/graphics/src/transformation.rs +++ b/graphics/src/transformation.rs @@ -52,8 +52,8 @@ impl From for [f32; 16] { } } -impl Into for Transformation { - fn into(self) -> Mat4 { - self.0 +impl From for Mat4 { + fn from(transformation: Transformation) -> Self { + transformation.0 } } -- cgit