Skip to content

Commit 8edcf6c

Browse files
committed
Clippy fallout.
1 parent 034b6f9 commit 8edcf6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/lifetimes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ struct BodyLifetimeChecker {
615615
impl<'tcx> Visitor<'tcx> for BodyLifetimeChecker {
616616
// for lifetimes as parameters of generics
617617
fn visit_lifetime(&mut self, lifetime: &'tcx Lifetime) {
618-
if lifetime.name.ident().name != kw::Empty && lifetime.name.ident().name != kw::StaticLifetime {
618+
if lifetime.name.ident().name != kw::UnderscoreLifetime && lifetime.name.ident().name != kw::StaticLifetime {
619619
self.lifetimes_used_in_body = true;
620620
}
621621
}

0 commit comments

Comments
 (0)