Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Clean up compiler warnings

Piotr Osiewicz822b1ec002dd
diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs
index 03e9f47d8df..264ca0bd46a 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<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();
diff --git a/crates/workspace/src/toolbar.rs b/crates/workspace/src/toolbar.rs
index a7c00cbe0fe..e8c1240d437 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 {