Skip to content

Commit bf08998

Browse files
committed
Use is_empty()
1 parent 9086b17 commit bf08998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/inherent_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MultipleInherentImpl {
5454
// Remember for each inherent implementation encoutered its span and generics
5555
// but filter out implementations that have generic params (type or lifetime)
5656
// or are derived from a macro
57-
if !in_macro(item.span) && generics.params.len() == 0 {
57+
if !in_macro(item.span) && generics.params.is_empty() {
5858
self.impls.insert(item.hir_id.owner_def_id(), item.span);
5959
}
6060
}

0 commit comments

Comments
 (0)