From dc4313f5020b6836b6a0ea56f2101e6a0415ecbc Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 16 Mar 2026 11:53:24 -0700 Subject: [PATCH] Clippy --- crates/agent_ui/src/slash_command_picker.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/agent_ui/src/slash_command_picker.rs b/crates/agent_ui/src/slash_command_picker.rs index 290fa9e43469d47d6715dc482e3caedaced3822d..30e07e7ad364d4c899b5a66927998d9ff6eb8641 100644 --- a/crates/agent_ui/src/slash_command_picker.rs +++ b/crates/agent_ui/src/slash_command_picker.rs @@ -337,11 +337,9 @@ where selected_index: 0, }; - let picker_view = cx.new(|cx| { + Some(cx.new(|cx| { Picker::uniform_list(delegate, window, cx).max_height(Some(rems(20.).into())) - }); - - Some(picker_view.clone()) + })) }) .trigger_with_tooltip(self.trigger, self.tooltip) .attach(gpui::Corner::TopLeft)