Dolda2000 GitWeb
/
kaka
/
rust-sdl-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use String instead of &str in struct
[kaka/rust-sdl-test.git]
/
src
/
game
/
app.rs
diff --git
a/src/game/app.rs
b/src/game/app.rs
index
e1fafdc
..
50acaa1
100644
(file)
--- a/
src/game/app.rs
+++ b/
src/game/app.rs
@@
-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);
}