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.

gpui: Do not derive serde::Deserialize for automatically generated Actions (#22687)

Piotr Osiewicz299ae92ffb5b
diff --git a/crates/gpui/src/action.rs b/crates/gpui/src/action.rs
index b81ba6136f6..4f5256dbb02 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!(