Skip to content

Commit ae150cf

Browse files
committed
Clippy.
1 parent 0512d8b commit ae150cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/bound.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,19 @@ pub struct BoundsChild<'a> {
9090
owner: &'a mut Bounds,
9191
bounds: Bounds,
9292
}
93-
impl<'a> Deref for BoundsChild<'a> {
93+
impl Deref for BoundsChild<'_> {
9494
type Target = Bounds;
9595

9696
fn deref(&self) -> &Self::Target {
9797
&self.bounds
9898
}
9999
}
100-
impl<'a> DerefMut for BoundsChild<'a> {
100+
impl DerefMut for BoundsChild<'_> {
101101
fn deref_mut(&mut self) -> &mut Self::Target {
102102
&mut self.bounds
103103
}
104104
}
105-
impl<'a> Drop for BoundsChild<'a> {
105+
impl Drop for BoundsChild<'_> {
106106
fn drop(&mut self) {
107107
if self.owner.can_extend {
108108
self.owner.ty.append(&mut self.bounds.ty);

src/syn_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ impl GenericParamSet {
288288
generics: &'a GenericParamSet,
289289
result: bool,
290290
}
291-
impl<'a, 'ast> Visit<'ast> for Visitor<'a> {
291+
impl<'ast> Visit<'ast> for Visitor<'_> {
292292
fn visit_path(&mut self, i: &'ast syn::Path) {
293293
if i.leading_colon.is_none() {
294294
if let Some(s) = i.segments.iter().next() {

0 commit comments

Comments
 (0)