From edb698105fdd123e5b4ac8880c861b508a80d55a Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Thu, 23 May 2019 07:24:53 +0200 Subject: [PATCH] cargo fmt Roses are red Violets are blue `Add rustfmt to a pre-commit hook` is what I should do. --- clippy_lints/src/lifetimes.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clippy_lints/src/lifetimes.rs b/clippy_lints/src/lifetimes.rs index 4f27d38c12f..8c167db9131 100644 --- a/clippy_lints/src/lifetimes.rs +++ b/clippy_lints/src/lifetimes.rs @@ -476,9 +476,7 @@ struct BodyLifetimeChecker { impl<'tcx> Visitor<'tcx> for BodyLifetimeChecker { // for lifetimes as parameters of generics fn visit_lifetime(&mut self, lifetime: &'tcx Lifetime) { - if lifetime.name.ident().name != kw::Invalid - && lifetime.name.ident().name != kw::StaticLifetime - { + if lifetime.name.ident().name != kw::Invalid && lifetime.name.ident().name != kw::StaticLifetime { self.lifetimes_used_in_body = true; } }