Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Enable `clippy::extra_unused_lifetimes` (#8754)
Marshall Bowers2f876471a12c
diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rsindex d131e9feae8..1018cb97d7c 100644--- a/crates/collab_ui/src/collab_panel.rs+++ b/crates/collab_ui/src/collab_panel.rs@@ -1629,7 +1629,7 @@ impl CollabPanel {self.toggle_channel_collapsed(id, cx)}- fn toggle_channel_collapsed<'a>(&mut self, channel_id: ChannelId, cx: &mut ViewContext<Self>) {+ fn toggle_channel_collapsed(&mut self, channel_id: ChannelId, cx: &mut ViewContext<Self>) {match self.collapsed_channels.binary_search(&channel_id) {Ok(ix) => {self.collapsed_channels.remove(ix);diff --git a/crates/gpui/src/app/test_context.rs b/crates/gpui/src/app/test_context.rsindex 20383047e78..6ceff76c381 100644--- a/crates/gpui/src/app/test_context.rs+++ b/crates/gpui/src/app/test_context.rs@@ -575,7 +575,7 @@ pub struct VisualTestContext {window: AnyWindowHandle,}-impl<'a> VisualTestContext {+impl VisualTestContext {/// Get the underlying window handle underlying this context.pub fn handle(&self) -> AnyWindowHandle {self.windowdiff --git a/crates/project_core/src/worktree.rs b/crates/project_core/src/worktree.rsindex a7b8e23b3c4..e5d50557f9c 100644--- a/crates/project_core/src/worktree.rs+++ b/crates/project_core/src/worktree.rs@@ -220,7 +220,7 @@ impl Deref for WorkDirectoryEntry {}}-impl<'a> From<ProjectEntryId> for WorkDirectoryEntry {+impl From<ProjectEntryId> for WorkDirectoryEntry {fn from(value: ProjectEntryId) -> Self {WorkDirectoryEntry(value)}diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rsindex 684091b4609..d97ea6ebbde 100644--- a/tooling/xtask/src/main.rs+++ b/tooling/xtask/src/main.rs@@ -92,7 +92,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {"clippy::eq_op","clippy::expect_fun_call","clippy::explicit_counter_loop",- "clippy::extra_unused_lifetimes","clippy::identity_op","clippy::implied_bounds_in_impls","clippy::iter_kv_map",