fix: pub static refs

This commit is contained in:
əlemi 2023-08-17 03:39:40 +02:00
parent fecd28165a
commit 463515da29
2 changed files with 3 additions and 3 deletions

View file

@ -11,8 +11,8 @@ use crate::{
use tokio::runtime::Runtime; use tokio::runtime::Runtime;
lazy_static::lazy_static! { lazy_static::lazy_static! {
static ref RUNTIME : Runtime = Runtime::new().expect("could not create tokio runtime"); pub static ref RUNTIME : Runtime = Runtime::new().expect("could not create tokio runtime");
static ref INSTANCE : Instance = Instance::default(); pub static ref INSTANCE : Instance = Instance::default();
} }
pub struct Instance { pub struct Instance {

View file

@ -8,4 +8,4 @@ pub use crate::buffer::TextChange as CodempTextChange;
pub use crate::proto::CursorPosition as CodempCursorPosition; pub use crate::proto::CursorPosition as CodempCursorPosition;
#[cfg(feature = "static")] #[cfg(feature = "static")]
pub use crate::instance::Instance as CodempInstance; pub use crate::instance::INSTANCE as CODEMP_INSTANCE;