From 299ae92ffb5b9838189c7544560ec41bb379096c Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Sun, 5 Jan 2025 18:25:00 +0100 Subject: [PATCH] gpui: Do not derive serde::Deserialize for automatically generated Actions (#22687) Closes #ISSUE Release Notes: - N/A --- crates/gpui/src/action.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/crates/gpui/src/action.rs b/crates/gpui/src/action.rs index b81ba6136f648e3e6f25c932c1a98ba812f91d0c..4f5256dbb021a706221fa4f921021046ad1a143e 100644 --- a/crates/gpui/src/action.rs +++ b/crates/gpui/src/action.rs @@ -185,8 +185,7 @@ macro_rules! actions { #[doc = "The `"] #[doc = stringify!($name)] #[doc = "` action, see [`gpui::actions!`]"] - #[derive(::std::cmp::PartialEq, ::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug, gpui::private::serde_derive::Deserialize)] - #[serde(crate = "gpui::private::serde")] + #[derive(::std::clone::Clone,::std::cmp::PartialEq, ::std::default::Default)] pub struct $name; gpui::__impl_action!($namespace, $name, $name, @@ -211,14 +210,7 @@ macro_rules! action_as { #[doc = "The `"] #[doc = stringify!($name)] #[doc = "` action, see [`gpui::actions!`]"] - #[derive( - ::std::cmp::PartialEq, - ::std::clone::Clone, - ::std::default::Default, - ::std::fmt::Debug, - gpui::private::serde_derive::Deserialize, - )] - #[serde(crate = "gpui::private::serde")] + #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)] pub struct $name; gpui::__impl_action!(