Skip to content

Commit 38dba4d

Browse files
authored
Remove lazy_static dependency (#90)
Mutex can now be constructed in const contexts, so we don't need to lazily construct it anymore.
1 parent 3410f88 commit 38dba4d

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ readme = "README.md"
99

1010
[dependencies]
1111
libz-sys = { version = "1.1", optional = true }
12-
lazy_static = "1.0"
1312

1413
[dev-dependencies]
1514
dlopen = "0.1"

src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#[macro_use]
2-
extern crate lazy_static;
31
// This extern crates are needed for linking
42
#[cfg(test)]
53
extern crate dlopen;

src/shaders/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ use std::slice;
2121
use std::str;
2222
use std::sync::Mutex;
2323

24-
lazy_static! {
25-
static ref CONSTRUCT_COMPILER_LOCK: Mutex<()> = Mutex::new(());
26-
}
24+
static CONSTRUCT_COMPILER_LOCK: Mutex<()> = Mutex::new(());
2725

2826
pub fn initialize() -> Result<(), &'static str> {
2927
if unsafe { GLSLangInitialize() } == 0 {

0 commit comments

Comments
 (0)