Skip to content

Commit

Permalink
Remove a lifetime annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
CaspianA1 committed Jan 2, 2025
1 parent fa2ef3e commit 7a313c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ impl TextureCreationInfo<'_> {
Ok(TextureCreationInfo::RawBytes(Cow::Owned(contents)))
}

pub fn from_path(path: &str) -> TextureCreationInfo<'_> {
pub fn from_path(path: &str) -> TextureCreationInfo {
TextureCreationInfo::Path(Cow::Borrowed(path))
}

Expand Down

0 comments on commit 7a313c4

Please sign in to comment.