Skip to content

Commit

Permalink
fix: SpriteView lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
zetanumbers committed Jan 14, 2022
1 parent caf2814 commit af5de1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wasm4/src/draw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ pub struct SpriteView<'a> {
shape: [u32; 2],
}

impl SpriteView<'_> {
impl<'a> SpriteView<'a> {
/// Get the view's underlying sprite.
pub fn sprite(&self) -> &Sprite {
pub fn sprite(&self) -> &'a Sprite {
self.sprite
}

Expand Down

0 comments on commit af5de1c

Please # to comment.