mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Dont use lazy static to construct mutexes (#33047)
* Remove usage of lazy-static in background_hang_monitor The lazy-static crate was only used to construct a mutex, but since Mutex::new is const this can be done at compiletime instead. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Remove usage of lazy-static in servoshell Lazy-static was only used to construct a mutex, but since Mutex::new is const this can simply be done at compiletime. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
d941d2fd67
commit
c059bab6f4
5 changed files with 2 additions and 12 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -291,7 +291,6 @@ dependencies = [
|
|||
"base",
|
||||
"crossbeam-channel",
|
||||
"ipc-channel",
|
||||
"lazy_static",
|
||||
"libc",
|
||||
"log",
|
||||
"mach2",
|
||||
|
@ -6187,7 +6186,6 @@ dependencies = [
|
|||
"ipc-channel",
|
||||
"jni",
|
||||
"keyboard-types",
|
||||
"lazy_static",
|
||||
"libc",
|
||||
"libloading",
|
||||
"libservo",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue