From b5b11a64bb6ab08fd96265da1a0525030393f49e Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Wed, 4 Dec 2024 12:47:06 -0800 Subject: [PATCH] Fix clippy lints --- pixman/src/image/bits.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pixman/src/image/bits.rs b/pixman/src/image/bits.rs index a7856e2..d194f83 100644 --- a/pixman/src/image/bits.rs +++ b/pixman/src/image/bits.rs @@ -25,7 +25,7 @@ unsafe impl<'bits, 'alpha> Send for Image<'bits, 'alpha> {} #[cfg(feature = "sync")] unsafe impl<'bits, 'alpha> Sync for Image<'bits, 'alpha> {} -impl<'bits, 'alpha> std::ops::Deref for Image<'bits, 'alpha> { +impl std::ops::Deref for Image<'_, '_> { type Target = ImageRef; fn deref(&self) -> &Self::Target { @@ -33,7 +33,7 @@ impl<'bits, 'alpha> std::ops::Deref for Image<'bits, 'alpha> { } } -impl<'bits, 'alpha> std::ops::DerefMut for Image<'bits, 'alpha> { +impl std::ops::DerefMut for Image<'_, '_> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.image } @@ -179,7 +179,7 @@ impl<'bits, 'a> Image<'bits, 'a> { } } -impl<'bits, 'alpha> Image<'bits, 'alpha> { +impl Image<'_, '_> { /// Get the width of the image pub fn width(&self) -> usize { unsafe { ffi::pixman_image_get_width(self.as_ptr()) as usize } @@ -484,7 +484,7 @@ impl<'bits, 'alpha> Image<'bits, 'alpha> { } } -impl<'bits, 'alpha> Image<'bits, 'alpha> { +impl Image<'_, '_> { /// Initialize the image from a raw pointer /// /// # Safety