Skip to content

Commit

Permalink
Fix new beta clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Oct 31, 2024
1 parent abf188d commit bba132f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gtk4/src/accessible.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pub enum Property<'p> {
ValueText(&'p str),
}

impl<'p> Property<'p> {
impl Property<'_> {
fn to_property_value(&self) -> (AccessibleProperty, Value) {
use Property::*;

Expand Down Expand Up @@ -173,7 +173,7 @@ pub enum Relation<'r> {
SetSize(i32),
}

impl<'r> Relation<'r> {
impl Relation<'_> {
fn to_relation_value(&self) -> (AccessibleRelation, Value) {
use Relation::*;

Expand Down
6 changes: 3 additions & 3 deletions gtk4/src/bitset_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl<'a> BitsetIter<'a> {
}
}

impl<'a> Iterator for BitsetIter<'a> {
impl Iterator for BitsetIter<'_> {
type Item = u32;

#[doc(alias = "gtk_bitset_iter_next")]
Expand All @@ -129,14 +129,14 @@ impl<'a> Iterator for BitsetIter<'a> {
}
}

impl<'a> std::iter::FusedIterator for BitsetIter<'a> {}
impl std::iter::FusedIterator for BitsetIter<'_> {}

#[doc(hidden)]
impl<'a> ToGlibPtr<'a, *const ffi::GtkBitsetIter> for BitsetIter<'a> {
type Storage = &'a Self;

#[inline]
fn to_glib_none(&'a self) -> Stash<*const ffi::GtkBitsetIter, Self> {
fn to_glib_none(&'a self) -> Stash<'a, *const ffi::GtkBitsetIter, Self> {
Stash(&self.0 as *const ffi::GtkBitsetIter, self)
}
}
Expand Down
2 changes: 1 addition & 1 deletion gtk4/src/response_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl ValueType for ResponseType {
type Type = Self;
}

unsafe impl<'a> FromValue<'a> for ResponseType {
unsafe impl FromValue<'_> for ResponseType {
type Checker = glib::value::GenericValueTypeChecker<Self>;

#[inline]
Expand Down

0 comments on commit bba132f

Please sign in to comment.