aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/tests
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/layout_2020/tests
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/layout_2020/tests')
-rw-r--r--components/layout_2020/tests/floats.rs5
1 files changed, 1 insertions, 4 deletions
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