We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_empty()
1 parent 9086b17 commit bf08998Copy full SHA for bf08998
clippy_lints/src/inherent_impl.rs
@@ -54,7 +54,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MultipleInherentImpl {
54
// Remember for each inherent implementation encoutered its span and generics
55
// but filter out implementations that have generic params (type or lifetime)
56
// or are derived from a macro
57
- if !in_macro(item.span) && generics.params.len() == 0 {
+ if !in_macro(item.span) && generics.params.is_empty() {
58
self.impls.insert(item.hir_id.owner_def_id(), item.span);
59
}
60
0 commit comments