diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rs index d131e9feae..1018cb97d7 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) { + fn toggle_channel_collapsed(&mut self, channel_id: ChannelId, cx: &mut ViewContext) { 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.rs index 20383047e7..6ceff76c38 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.window diff --git a/crates/project_core/src/worktree.rs b/crates/project_core/src/worktree.rs index a7b8e23b3c..e5d50557f9 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 for WorkDirectoryEntry { +impl From for WorkDirectoryEntry { fn from(value: ProjectEntryId) -> Self { WorkDirectoryEntry(value) } diff --git a/tooling/xtask/src/main.rs b/tooling/xtask/src/main.rs index 684091b460..d97ea6ebbd 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",