Skip to content

Commit

Permalink
Cleanup unneeded lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
complexspaces committed Dec 26, 2024
1 parent 5350a8f commit 782b98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub struct ImageData<'a> {
}

#[cfg(feature = "image-data")]
impl<'a> ImageData<'a> {
impl ImageData<'_> {
/// Returns a the bytes field in a way that it's guaranteed to be owned.
/// It moves the bytes if they are already owned and clones them if they are borrowed.
pub fn into_owned_bytes(self) -> Cow<'static, [u8]> {
Expand Down

0 comments on commit 782b98c

Please sign in to comment.