-pub struct SpriteManager<'canvas> {
- texture_creator: &'canvas TextureCreator<WindowContext>, // can't make the lifetimes work when this is owned instead of borrowed
- textures: HashMap<&'static str, Texture<'canvas>>,
+pub struct SpriteManager {
+ texture_creator: TextureCreator<WindowContext>, // can't make the lifetimes work when this is owned instead of borrowed
+ textures: HashMap<&'static str, Texture>,