From d894e8863ddc1542601f14d7b50decd012ecd5b4 Mon Sep 17 00:00:00 2001 From: rushmorem Date: Wed, 13 Nov 2024 23:31:17 +0000 Subject: [PATCH] Drop obsolete dev dependency --- Cargo.toml | 1 - tests/list.rs | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1e1c62e..1aa0140 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,6 @@ idna = { version = "1.0", optional = true } unicase = { version = "2.6.0", default-features = false, optional = true } [dev-dependencies] -lazy_static = "1.4.0" rspec = "1.0.0" [package.metadata.docs.rs] diff --git a/tests/list.rs b/tests/list.rs index dd6f359..9832777 100644 --- a/tests/list.rs +++ b/tests/list.rs @@ -1,10 +1,10 @@ use publicsuffix::{List, Psl, Type}; use rspec::report::ExampleResult; +use std::sync::LazyLock; use std::{env, mem, str}; -lazy_static::lazy_static! { - static ref LIST: List = include_str!("public_suffix_list.dat").parse().unwrap(); -} +static LIST: LazyLock = + LazyLock::new(|| include_str!("public_suffix_list.dat").parse().unwrap()); #[test] fn list_behaviour() {