From a93aa598d6bb298b6cea21d5d57996d22f63f106 Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Fri, 18 Apr 2025 11:35:48 -0600 Subject: [PATCH] Fix documentation of `impl_action_with_deprecated_aliases` (#29063) Release Notes: - N/A --- crates/gpui/src/action.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/gpui/src/action.rs b/crates/gpui/src/action.rs index faf0bed8fa..b757acf9bb 100644 --- a/crates/gpui/src/action.rs +++ b/crates/gpui/src/action.rs @@ -394,7 +394,10 @@ macro_rules! action_with_deprecated_aliases { }; } -/// Defines and registers a unit struct that can be used as an action, with some deprecated aliases. +/// Registers the action and implements the Action trait for any struct that implements Clone, +/// Default, PartialEq, serde_deserialize::Deserialize, and schemars::JsonSchema. +/// +/// Similar to `impl_actions!`, but only handles one struct, and registers some deprecated aliases. #[macro_export] macro_rules! impl_action_with_deprecated_aliases { ($namespace:path, $name:ident, [$($alias:literal),* $(,)?]) => {