From 4cc1b6854616ae5f4b2455aedcd3e1fe9251a6a1 Mon Sep 17 00:00:00 2001 From: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> Date: Fri, 16 Aug 2024 12:57:09 +0900 Subject: Remove lazy static (#33078) * remove from rand Mutex 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> --- components/layout_2020/tests/floats.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'components/layout_2020/tests') diff --git a/components/layout_2020/tests/floats.rs b/components/layout_2020/tests/floats.rs index 01d8f398aa7..0035bd265c9 100644 --- a/components/layout_2020/tests/floats.rs +++ b/components/layout_2020/tests/floats.rs @@ -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 -- cgit v1.2.3