Skip to content

Commit d0a8a12

Browse files
committed
clippy::flat_map_identity
1 parent 053aedc commit d0a8a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lint/src/levels.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ pub fn is_known_lint_tool(m_item: Symbol, sess: &Session, attrs: &[ast::Attribut
576576
// NOTE: does no error handling; error handling is done by rustc_resolve.
577577
sess.filter_by_name(attrs, sym::register_tool)
578578
.filter_map(|attr| attr.meta_item_list())
579-
.flat_map(std::convert::identity)
579+
.flatten()
580580
.filter_map(|nested_meta| nested_meta.ident())
581581
.map(|ident| ident.name)
582582
.any(|name| name == m_item)

0 commit comments

Comments
 (0)