#[rustfmt::skip] use flowy_dispatch::prelude::*; use std::sync::Once; #[allow(dead_code)] pub fn setup_env() { static INIT: Once = Once::new(); INIT.call_once(|| env_logger::init()); } pub fn init_dispatch(module_factory: F) -> EventDispatch where F: FnOnce() -> Vec, { EventDispatch::construct(module_factory) }