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; } } -