Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 committed Dec 4, 2024
1 parent 9a07908 commit b5b11a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pixman/src/image/bits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ 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 {
&self.image
}
}

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
}
Expand Down Expand Up @@ -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 }
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b5b11a6

Please sign in to comment.