Skip to content

Commit edb6981

Browse files
committed
cargo fmt
Roses are red Violets are blue `Add rustfmt to a pre-commit hook` is what I should do.
1 parent 635a2fa commit edb6981

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clippy_lints/src/lifetimes.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,7 @@ struct BodyLifetimeChecker {
476476
impl<'tcx> Visitor<'tcx> for BodyLifetimeChecker {
477477
// for lifetimes as parameters of generics
478478
fn visit_lifetime(&mut self, lifetime: &'tcx Lifetime) {
479-
if lifetime.name.ident().name != kw::Invalid
480-
&& lifetime.name.ident().name != kw::StaticLifetime
481-
{
479+
if lifetime.name.ident().name != kw::Invalid && lifetime.name.ident().name != kw::StaticLifetime {
482480
self.lifetimes_used_in_body = true;
483481
}
484482
}

0 commit comments

Comments
 (0)