mirror of
https://github.com/lisk77/comet.git
synced 2025-10-23 21:38:50 +00:00
fix(ecs): removed unnecessary clone from Render2D Render trait implementation
This commit is contained in:
parent
88fda5c654
commit
67ac2f90e4
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue