Remove lazy_static dependencie
This commit is contained in:
parent
bfcaad3ad1
commit
861ee21b2d
2 changed files with 2 additions and 5 deletions
|
@ -15,7 +15,6 @@ implot-sys = { version = "0.4.0", path = "implot-sys" }
|
||||||
imgui = { version = "=0.6.0" }
|
imgui = { version = "=0.6.0" }
|
||||||
bitflags = "1.0"
|
bitflags = "1.0"
|
||||||
parking_lot = "0.11"
|
parking_lot = "0.11"
|
||||||
lazy_static = "1.1"
|
|
||||||
rustversion = "1.0.4"
|
rustversion = "1.0.4"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,8 @@ pub struct Context {
|
||||||
raw: *mut sys::ImPlotContext,
|
raw: *mut sys::ImPlotContext,
|
||||||
}
|
}
|
||||||
|
|
||||||
lazy_static::lazy_static! {
|
// This mutex is used to guard any accesses to the context
|
||||||
// This mutex is used to guard any accesses to the context
|
static CTX_MUTEX: ReentrantMutex<()> = parking_lot::const_reentrant_mutex(());
|
||||||
static ref CTX_MUTEX: ReentrantMutex<()> = ReentrantMutex::new(());
|
|
||||||
}
|
|
||||||
|
|
||||||
fn no_current_context() -> bool {
|
fn no_current_context() -> bool {
|
||||||
let ctx = unsafe { sys::ImPlot_GetCurrentContext() };
|
let ctx = unsafe { sys::ImPlot_GetCurrentContext() };
|
||||||
|
|
Loading…
Reference in a new issue