- pub fn load(&mut self, name: &'static str, file: &str) {
- self.textures.insert(name, self.texture_creator.load_texture(file).unwrap());
+ pub fn load(&mut self, name: &str, file: &str) {
+ self.textures.insert(name.to_string(), self.texture_creator.load_texture(file).unwrap());