Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
chore: fix compiler warnings
Piotr Osiewicze2b8e6ce63ad
diff --git a/crates/search/src/buffer_search.rs b/crates/search/src/buffer_search.rsindex b9b09523cc5..d7add915998 100644--- a/crates/search/src/buffer_search.rs+++ b/crates/search/src/buffer_search.rs@@ -468,46 +468,6 @@ impl BufferSearchBar {self.update_matches(cx)}- fn render_search_option(- &self,- option_supported: bool,- icon: &'static str,- option: SearchOptions,- cx: &mut ViewContext<Self>,- ) -> Option<AnyElement<Self>> {- if !option_supported {- return None;- }-- let tooltip_style = theme::current(cx).tooltip.clone();- let is_active = self.search_options.contains(option);- Some(- MouseEventHandler::<Self, _>::new(option.bits as usize, cx, |state, cx| {- let theme = theme::current(cx);- let style = theme- .search- .option_button- .in_state(is_active)- .style_for(state);- Label::new(icon, style.text.clone())- .contained()- .with_style(style.container)- })- .on_click(MouseButton::Left, move |_, this, cx| {- this.toggle_search_option(option, cx);- })- .with_cursor_style(CursorStyle::PointingHand)- .with_tooltip::<Self>(- option.bits as usize,- format!("Toggle {}", option.label()),- Some(option.to_toggle_action()),- tooltip_style,- cx,- )- .into_any(),- )- }-fn render_nav_button(&self,icon: &'static str,diff --git a/crates/semantic_index/src/semantic_index.rs b/crates/semantic_index/src/semantic_index.rsindex 50b871d454a..8c9877b9d38 100644--- a/crates/semantic_index/src/semantic_index.rs+++ b/crates/semantic_index/src/semantic_index.rs@@ -16,7 +16,7 @@ use language::{Anchor, Buffer, Language, LanguageRegistry};use parking_lot::Mutex;use parsing::{CodeContextRetriever, Document, PARSEABLE_ENTIRE_FILE_TYPES};use postage::watch;-use project::{project_settings, search::PathMatcher, Fs, Project, WorktreeId};+use project::{search::PathMatcher, Fs, Project, WorktreeId};use smol::channel;use std::{cmp::Ordering,