Skip to content

Commit bba132f

Browse files
Fix new beta clippy warnings
1 parent abf188d commit bba132f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

gtk4/src/accessible.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub enum Property<'p> {
119119
ValueText(&'p str),
120120
}
121121

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

@@ -173,7 +173,7 @@ pub enum Relation<'r> {
173173
SetSize(i32),
174174
}
175175

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

gtk4/src/bitset_iter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl<'a> BitsetIter<'a> {
108108
}
109109
}
110110

111-
impl<'a> Iterator for BitsetIter<'a> {
111+
impl Iterator for BitsetIter<'_> {
112112
type Item = u32;
113113

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

132-
impl<'a> std::iter::FusedIterator for BitsetIter<'a> {}
132+
impl std::iter::FusedIterator for BitsetIter<'_> {}
133133

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

138138
#[inline]
139-
fn to_glib_none(&'a self) -> Stash<*const ffi::GtkBitsetIter, Self> {
139+
fn to_glib_none(&'a self) -> Stash<'a, *const ffi::GtkBitsetIter, Self> {
140140
Stash(&self.0 as *const ffi::GtkBitsetIter, self)
141141
}
142142
}

gtk4/src/response_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl ValueType for ResponseType {
118118
type Type = Self;
119119
}
120120

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

124124
#[inline]

0 commit comments

Comments
 (0)