mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Use is_empty()
This commit is contained in:
parent
9086b17e14
commit
bf08998b5c
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MultipleInherentImpl {
|
|||
// Remember for each inherent implementation encoutered its span and generics
|
||||
// but filter out implementations that have generic params (type or lifetime)
|
||||
// or are derived from a macro
|
||||
if !in_macro(item.span) && generics.params.len() == 0 {
|
||||
if !in_macro(item.span) && generics.params.is_empty() {
|
||||
self.impls.insert(item.hir_id.owner_def_id(), item.span);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue