From d139e19bd287ba340b923136c266a77367b83990 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 18 May 2024 16:57:03 +0200 Subject: refactor(engine): fix clippy lints --- engine/src/math.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/src/math.rs') diff --git a/engine/src/math.rs b/engine/src/math.rs index bda3b59..b86e760 100644 --- a/engine/src/math.rs +++ b/engine/src/math.rs @@ -10,8 +10,8 @@ pub fn calc_triangle_surface_normal( edge_c: &Vec3, ) -> Vec3 { - let v1 = edge_b.clone() - egde_a.clone(); - let v2 = edge_c.clone() - egde_a.clone(); + let v1 = edge_b - egde_a; + let v2 = edge_c - egde_a; v1.cross(&v2) } -- cgit v1.2.3-18-g5258