mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-13 08:27:14 +00:00
cargo fmt
Roses are red Violets are blue `Add rustfmt to a pre-commit hook` is what I should do.
This commit is contained in:
parent
635a2fa5df
commit
edb698105f
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue