mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-23 05:14:54 +01:00
fix: pub static refs
This commit is contained in:
parent
fecd28165a
commit
463515da29
2 changed files with 3 additions and 3 deletions
|
@ -11,8 +11,8 @@ use crate::{
|
|||
use tokio::runtime::Runtime;
|
||||
|
||||
lazy_static::lazy_static! {
|
||||
static ref RUNTIME : Runtime = Runtime::new().expect("could not create tokio runtime");
|
||||
static ref INSTANCE : Instance = Instance::default();
|
||||
pub static ref RUNTIME : Runtime = Runtime::new().expect("could not create tokio runtime");
|
||||
pub static ref INSTANCE : Instance = Instance::default();
|
||||
}
|
||||
|
||||
pub struct Instance {
|
||||
|
|
|
@ -8,4 +8,4 @@ pub use crate::buffer::TextChange as CodempTextChange;
|
|||
pub use crate::proto::CursorPosition as CodempCursorPosition;
|
||||
|
||||
#[cfg(feature = "static")]
|
||||
pub use crate::instance::Instance as CodempInstance;
|
||||
pub use crate::instance::INSTANCE as CODEMP_INSTANCE;
|
||||
|
|
Loading…
Reference in a new issue