From 822b1ec002dd2449672f3fa71b6e417276bdd9e7 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Thu, 3 Aug 2023 16:12:08 +0200 Subject: [PATCH] Clean up compiler warnings Co-authored-by: Kyle --- crates/search/src/project_search.rs | 2 +- crates/workspace/src/toolbar.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs index 03e9f47d8d..264ca0bd46 100644 --- a/crates/search/src/project_search.rs +++ b/crates/search/src/project_search.rs @@ -1426,7 +1426,7 @@ impl ProjectSearchBar { fn toggle_search_option(&mut self, option: SearchOptions, cx: &mut ViewContext) -> 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(); diff --git a/crates/workspace/src/toolbar.rs b/crates/workspace/src/toolbar.rs index a7c00cbe0f..e8c1240d43 100644 --- a/crates/workspace/src/toolbar.rs +++ b/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 {