Call init
This commit is contained in:
parent
f5f9d881d7
commit
408a495aaf
2 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,10 @@
|
||||||
use gpui::actions;
|
use gpui::actions;
|
||||||
|
|
||||||
// If the zed binary doesn't use anything in this crate, it will be optimized out
|
// If the zed binary doesn't use anything in this crate, it will be optimized away
|
||||||
// and the actions won't initialize. So we just call an empty initialization function.
|
// and the actions won't initialize. So we just provide an empty initialization function
|
||||||
|
// to be called from main.
|
||||||
|
//
|
||||||
|
// These may provide relevant context:
|
||||||
// https://github.com/rust-lang/rust/issues/47384
|
// https://github.com/rust-lang/rust/issues/47384
|
||||||
// https://github.com/mmastrac/rust-ctor/issues/280
|
// https://github.com/mmastrac/rust-ctor/issues/280
|
||||||
pub fn init() {}
|
pub fn init() {}
|
||||||
|
|
|
@ -56,10 +56,7 @@ use zed2::{
|
||||||
mod open_listener;
|
mod open_listener;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
//TODO!(figure out what the linker issues are here)
|
menu::init();
|
||||||
// https://github.com/rust-lang/rust/issues/47384
|
|
||||||
// https://github.com/mmastrac/rust-ctor/issues/280
|
|
||||||
// menu::unused();
|
|
||||||
let http = http::client();
|
let http = http::client();
|
||||||
init_paths();
|
init_paths();
|
||||||
init_logger();
|
init_logger();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue