Clean up compiler warnings
Co-authored-by: Kyle <kyle@zed.dev>
This commit is contained in:
parent
8831e03eba
commit
822b1ec002
2 changed files with 4 additions and 4 deletions
|
@ -1426,7 +1426,7 @@ impl ProjectSearchBar {
|
||||||
|
|
||||||
fn toggle_search_option(&mut self, option: SearchOptions, cx: &mut ViewContext<Self>) -> bool {
|
fn toggle_search_option(&mut self, option: SearchOptions, cx: &mut ViewContext<Self>) -> bool {
|
||||||
if let Some(search_view) = self.active_project_search.as_ref() {
|
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);
|
search_view.toggle_search_option(option);
|
||||||
});
|
});
|
||||||
cx.notify();
|
cx.notify();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use crate::{ItemHandle, Pane};
|
use crate::ItemHandle;
|
||||||
use gpui::{
|
use gpui::{
|
||||||
elements::*, platform::CursorStyle, platform::MouseButton, Action, AnyElement, AnyViewHandle,
|
elements::*, AnyElement, AnyViewHandle, AppContext, Entity, View, ViewContext, ViewHandle,
|
||||||
AppContext, Entity, View, ViewContext, ViewHandle, WeakViewHandle, WindowContext,
|
WindowContext,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub trait ToolbarItemView: View {
|
pub trait ToolbarItemView: View {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue