Remove lazy_static dependencie

This commit is contained in:
Ilya Averyanov 2021-03-06 03:22:06 +03:00 committed by 4bb4
parent bfcaad3ad1
commit 861ee21b2d
2 changed files with 2 additions and 5 deletions

View file

@ -15,7 +15,6 @@ implot-sys = { version = "0.4.0", path = "implot-sys" }
imgui = { version = "=0.6.0" }
bitflags = "1.0"
parking_lot = "0.11"
lazy_static = "1.1"
rustversion = "1.0.4"

View file

@ -17,10 +17,8 @@ pub struct Context {
raw: *mut sys::ImPlotContext,
}
lazy_static::lazy_static! {
// This mutex is used to guard any accesses to the context
static ref CTX_MUTEX: ReentrantMutex<()> = ReentrantMutex::new(());
}
static CTX_MUTEX: ReentrantMutex<()> = parking_lot::const_reentrant_mutex(());
fn no_current_context() -> bool {
let ctx = unsafe { sys::ImPlot_GetCurrentContext() };