Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 authored and cmeissl committed Dec 8, 2024
1 parent e14fd57 commit 4dee2cf
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 Send for Image<'_, '_> {}
#[cfg(feature = "sync")]
unsafe impl Sync for Image<'_, '_> {}

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 4dee2cf

Please sign in to comment.