Use String instead of &str in struct
[kaka/rust-sdl-test.git] / src / game / app.rs
index e1fafdc..50acaa1 100644 (file)
@@ -48,7 +48,7 @@ impl App {
         }
     }
 
-    pub fn load_sprites(&mut self, sprites: &[(&'static str, &str)]) {
+    pub fn load_sprites(&mut self, sprites: &[(&str, &str)]) {
         for (name, file) in sprites {
             self.sprites.load(name, file);
         }