Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
Roses are red
Violets are blue
`Add rustfmt to a pre-commit hook` is what I should do.
  • Loading branch information
phansch committed May 23, 2019
1 parent 635a2fa commit edb6981
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions clippy_lints/src/lifetimes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit edb6981

Please sign in to comment.