Polish actions macros

This commit is contained in:
Nathan Sobo 2023-11-09 11:57:13 -07:00
parent 72de5cb6ce
commit f5f9d881d7
4 changed files with 19 additions and 11 deletions

View file

@ -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,