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

@ -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(());
}
// This mutex is used to guard any accesses to the context
static CTX_MUTEX: ReentrantMutex<()> = parking_lot::const_reentrant_mutex(());
fn no_current_context() -> bool {
let ctx = unsafe { sys::ImPlot_GetCurrentContext() };