Clean up compiler warnings

Piotr Osiewicz and Kyle created

Co-authored-by: Kyle <kyle@zed.dev>

Change summary

crates/search/src/project_search.rs | 2 +-
crates/workspace/src/toolbar.rs     | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)

Detailed changes

crates/search/src/project_search.rs 🔗

@@ -1426,7 +1426,7 @@ impl ProjectSearchBar {
 
     fn toggle_search_option(&mut self, option: SearchOptions, cx: &mut ViewContext<Self>) -> bool {
         if let Some(search_view) = self.active_project_search.as_ref() {
-            search_view.update(cx, |search_view, cx| {
+            search_view.update(cx, |search_view, _cx| {
                 search_view.toggle_search_option(option);
             });
             cx.notify();

crates/workspace/src/toolbar.rs 🔗

@@ -1,7 +1,7 @@
-use crate::{ItemHandle, Pane};
+use crate::ItemHandle;
 use gpui::{
-    elements::*, platform::CursorStyle, platform::MouseButton, Action, AnyElement, AnyViewHandle,
-    AppContext, Entity, View, ViewContext, ViewHandle, WeakViewHandle, WindowContext,
+    elements::*, AnyElement, AnyViewHandle, AppContext, Entity, View, ViewContext, ViewHandle,
+    WindowContext,
 };
 
 pub trait ToolbarItemView: View {