mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 22:34:13 +00:00
Remove impl_internal_actions
macro
This commit is contained in:
parent
1d41a703ad
commit
1c5376a560
1 changed files with 0 additions and 18 deletions
|
@ -66,24 +66,6 @@ macro_rules! impl_actions {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Implement the `Action` trait for a set of existing types that are
|
|
||||||
/// not intended to be constructed via a keymap file, but only dispatched
|
|
||||||
/// internally.
|
|
||||||
#[macro_export]
|
|
||||||
macro_rules! impl_internal_actions {
|
|
||||||
($namespace:path, [ $($name:ident),* $(,)? ]) => {
|
|
||||||
$(
|
|
||||||
$crate::__impl_action! {
|
|
||||||
$namespace,
|
|
||||||
$name,
|
|
||||||
fn from_json_str(_: &str) -> $crate::anyhow::Result<Box<dyn $crate::Action>> {
|
|
||||||
Err($crate::anyhow::anyhow!("internal action"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
)*
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! __impl_action {
|
macro_rules! __impl_action {
|
||||||
|
|
Loading…
Reference in a new issue