mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
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>
This commit is contained in:
parent
4b3ed4b684
commit
4cc1b68546
9 changed files with 4 additions and 23 deletions
|
@ -53,5 +53,4 @@ webrender_traits = { workspace = true }
|
|||
xi-unicode = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
lazy_static = { workspace = true }
|
||||
quickcheck = "1"
|
||||
|
|
|
@ -17,13 +17,10 @@ use layout_2020::flow::float::{
|
|||
PlacementInfo,
|
||||
};
|
||||
use layout_2020::geom::{LogicalRect, LogicalVec2};
|
||||
use lazy_static::lazy_static;
|
||||
use quickcheck::{Arbitrary, Gen};
|
||||
use style::values::computed::Clear;
|
||||
|
||||
lazy_static! {
|
||||
static ref PANIC_HOOK_MUTEX: Mutex<()> = Mutex::new(());
|
||||
}
|
||||
static PANIC_HOOK_MUTEX: Mutex<()> = Mutex::new(());
|
||||
|
||||
// Suppresses panic messages. Some tests need to fail and we don't want them to spam the console.
|
||||
// Note that, because the panic hook is process-wide, tests that are expected to fail might
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue