diff --git a/crates/project/src/project.rs b/crates/project/src/project.rs index 043dfe278ef4bdfce013275ae1fc5e122f5f70bd..a54ab68a43940ebf45de77243183f43fca832fa5 100644 --- a/crates/project/src/project.rs +++ b/crates/project/src/project.rs @@ -7002,7 +7002,7 @@ impl Project { .spawn(async move { future_buffers .into_iter() - .filter_map(|e| e) + .flatten() .chain(current_buffers) .filter_map(|(buffer, path)| { let (work_directory, repo) = diff --git a/crates/recent_projects/src/recent_projects.rs b/crates/recent_projects/src/recent_projects.rs index eecd25153762c9ef7f1a0a74e244dd6045b2963f..c2cfd9713a33a00ecbf929f71e03aa2100a9bbbe 100644 --- a/crates/recent_projects/src/recent_projects.rs +++ b/crates/recent_projects/src/recent_projects.rs @@ -325,10 +325,7 @@ impl PickerDelegate for RecentProjectsDelegate { .unzip(); let highlighted_match = HighlightedMatchWithPaths { - match_label: HighlightedText::join( - match_labels.into_iter().filter_map(|name| name), - ", ", - ), + match_label: HighlightedText::join(match_labels.into_iter().flatten(), ", "), paths: if self.render_paths { paths } else { Vec::new() }, }; Some( diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rs index e75ec5a99cebed41c48d2b9f7458f0cbceb91b27..ed28b5710eeb3e55d8b6b64622944a44f61465bb 100644 --- a/tooling/xtask/src/main.rs +++ b/tooling/xtask/src/main.rs @@ -95,7 +95,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> { "clippy::explicit_auto_deref", "clippy::explicit_counter_loop", "clippy::extra_unused_lifetimes", - "clippy::filter_map_identity", "clippy::identity_op", "clippy::implied_bounds_in_impls", "clippy::iter_kv_map",