Polish actions macros
This commit is contained in:
parent
72de5cb6ce
commit
f5f9d881d7
4 changed files with 19 additions and 11 deletions
|
@ -1,9 +1,10 @@
|
|||
use gpui::actions;
|
||||
|
||||
// todo!(remove this)
|
||||
// If the zed binary doesn't use anything in this crate, it will be optimized out
|
||||
// and the actions won't initialize. So we just call an empty initialization function.
|
||||
// https://github.com/rust-lang/rust/issues/47384
|
||||
// https://github.com/mmastrac/rust-ctor/issues/280
|
||||
pub fn unused() {}
|
||||
pub fn init() {}
|
||||
|
||||
actions!(
|
||||
Cancel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue