@@ -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();
@@ -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 {