diff --git a/Cargo.toml b/Cargo.toml index 177323a..bee7aba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,9 +14,6 @@ rust-version = "1.36" [lib] doc-scrape-examples = false -[dev-dependencies] -once_cell = "1" - [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] rustdoc-args = ["--generate-link-to-definition"] diff --git a/src/tests.rs b/src/tests.rs index d2e3fd6..705d12f 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -1,9 +1,9 @@ use super::*; -use once_cell::sync::OnceCell; +use std::sync::OnceLock; macro_rules! range { ($text:expr) => {{ - static CHARS: OnceCell> = OnceCell::new(); + static CHARS: OnceLock> = OnceLock::new(); let chars = CHARS.get_or_init(|| $text.chars().collect()); Range::new(chars, ..) }};