fix(ecs): removed unnecessary clone from Render2D Render trait implementation

This commit is contained in:
lisk77 2025-07-21 03:09:33 +02:00
parent 88fda5c654
commit 67ac2f90e4

View file

@ -272,7 +272,7 @@ impl Render for Render2D {
} }
fn get_texture(&self) -> String { 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 /// Use the actual file name of the texture instead of the path
@ -537,4 +537,3 @@ impl Timer {
self.done = false; self.done = false;
} }
} }