We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 635a2fa commit edb6981Copy full SHA for edb6981
clippy_lints/src/lifetimes.rs
@@ -476,9 +476,7 @@ struct BodyLifetimeChecker {
476
impl<'tcx> Visitor<'tcx> for BodyLifetimeChecker {
477
// for lifetimes as parameters of generics
478
fn visit_lifetime(&mut self, lifetime: &'tcx Lifetime) {
479
- if lifetime.name.ident().name != kw::Invalid
480
- && lifetime.name.ident().name != kw::StaticLifetime
481
- {
+ if lifetime.name.ident().name != kw::Invalid && lifetime.name.ident().name != kw::StaticLifetime {
482
self.lifetimes_used_in_body = true;
483
}
484
0 commit comments