aboutsummaryrefslogtreecommitdiffstats
path: root/components/media
diff options
context:
space:
mode:
authorHayashi Mikihiro <34ttrweoewiwe28@gmail.com>2024-08-16 12:57:09 +0900
committerGitHub <noreply@github.com>2024-08-16 03:57:09 +0000
commit4cc1b6854616ae5f4b2455aedcd3e1fe9251a6a1 (patch)
tree7fad99391209ee2f2486a250c481d5e8b0cbbe46 /components/media
parent4b3ed4b68489342f41693243b25711079070dcd1 (diff)
downloadservo-4cc1b6854616ae5f4b2455aedcd3e1fe9251a6a1.tar.gz
servo-4cc1b6854616ae5f4b2455aedcd3e1fe9251a6a1.zip
Remove lazy static (#33078)
* remove from rand Mutex<OsRng> can be initialized in compile time. Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> * remove from layout_2020 Mutex<()> can be initialize in compile time Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> * remove from media `IS_MULTIPROCESS` doesn't be used. Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> * remove lazy_static from dependencies Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> * rewrite suppressed_leaks_for_asan.txt For all of lazy_static was replaced with LazyLock. Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> --------- Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
Diffstat (limited to 'components/media')
-rw-r--r--components/media/Cargo.toml1
-rw-r--r--components/media/media_channel/mod.rs6
2 files changed, 0 insertions, 7 deletions
diff --git a/components/media/Cargo.toml b/components/media/Cargo.toml
index 21ce8db2201..c272f02949c 100644
--- a/components/media/Cargo.toml
+++ b/components/media/Cargo.toml
@@ -14,7 +14,6 @@ path = "lib.rs"
euclid = { workspace = true }
fnv = { workspace = true }
ipc-channel = { workspace = true }
-lazy_static = { workspace = true }
log = { workspace = true }
serde = { workspace = true }
servo-media = { workspace = true }
diff --git a/components/media/media_channel/mod.rs b/components/media/media_channel/mod.rs
index 4bcb652f12f..d01a80b7550 100644
--- a/components/media/media_channel/mod.rs
+++ b/components/media/media_channel/mod.rs
@@ -9,16 +9,10 @@ mod mpsc;
use std::fmt;
-use lazy_static::lazy_static;
use serde::{Deserialize, Serialize};
-use servo_config::opts;
use crate::GLPlayerMsg;
-lazy_static! {
- static ref IS_MULTIPROCESS: bool = opts::multiprocess();
-}
-
#[derive(Deserialize, Serialize)]
pub enum GLPlayerSender<T: Serialize> {
Ipc(ipc::GLPlayerSender<T>),