From 67ac2f90e46ba98e10ffc77232aeca5092122c30 Mon Sep 17 00:00:00 2001 From: lisk77 Date: Mon, 21 Jul 2025 03:09:33 +0200 Subject: [PATCH] fix(ecs): removed unnecessary clone from Render2D Render trait implementation --- crates/comet_ecs/src/component.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/comet_ecs/src/component.rs b/crates/comet_ecs/src/component.rs index 1ee2976..c98d172 100755 --- a/crates/comet_ecs/src/component.rs +++ b/crates/comet_ecs/src/component.rs @@ -272,7 +272,7 @@ impl Render for Render2D { } fn get_texture(&self) -> String { - self.texture_name.clone().parse().unwrap() + self.texture_name.parse().unwrap() } /// Use the actual file name of the texture instead of the path @@ -537,4 +537,3 @@ impl Timer { self.done = false; } } -