From 741e11cc11df7f5b84d7dce8db7f20610655bd9b Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Fri, 17 Nov 2023 13:27:33 +0100 Subject: [PATCH] Fix up action derive --- crates/search2/src/buffer_search.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/search2/src/buffer_search.rs b/crates/search2/src/buffer_search.rs index 3c995af20b..5e21380629 100644 --- a/crates/search2/src/buffer_search.rs +++ b/crates/search2/src/buffer_search.rs @@ -10,11 +10,12 @@ use collections::HashMap; use editor::Editor; use futures::channel::oneshot; use gpui::{ - action, actions, div, red, Action, AppContext, Component, Div, EventEmitter, - InteractiveComponent, ParentComponent as _, Render, Styled, Subscription, Task, View, - ViewContext, VisualContext as _, WindowContext, + actions, div, red, Action, AppContext, Component, Div, EventEmitter, InteractiveComponent, + ParentComponent as _, Render, Styled, Subscription, Task, View, ViewContext, + VisualContext as _, WindowContext, }; use project::search::SearchQuery; +use serde::Deserialize; use std::{any::Any, sync::Arc}; use ui::{h_stack, ButtonGroup, Icon, IconButton, IconElement}; @@ -25,7 +26,7 @@ use workspace::{ Pane, ToolbarItemLocation, ToolbarItemView, Workspace, }; -#[action] +#[derive(PartialEq, Clone, Deserialize, Default, Action)] pub struct Deploy { pub focus: bool, }