diff options
Diffstat (limited to 'tvix/build')
-rw-r--r-- | tvix/build/Cargo.toml | 1 | ||||
-rw-r--r-- | tvix/build/src/buildservice/from_addr.rs | 8 |
2 files changed, 2 insertions, 7 deletions
diff --git a/tvix/build/Cargo.toml b/tvix/build/Cargo.toml index d91455252c88..86f3fe4ac1f8 100644 --- a/tvix/build/Cargo.toml +++ b/tvix/build/Cargo.toml @@ -39,7 +39,6 @@ tonic-reflection = ["dep:tonic-reflection", "tvix-castore/tonic-reflection"] [dev-dependencies] rstest = { workspace = true } -lazy_static = "1.4.0" tempfile = "3.3.0" [lints] diff --git a/tvix/build/src/buildservice/from_addr.rs b/tvix/build/src/buildservice/from_addr.rs index a7afba1138af..0f4c190c2aca 100644 --- a/tvix/build/src/buildservice/from_addr.rs +++ b/tvix/build/src/buildservice/from_addr.rs @@ -66,20 +66,16 @@ where #[cfg(test)] mod tests { - use std::sync::Arc; - use super::from_addr; - use lazy_static::lazy_static; use rstest::rstest; + use std::sync::{Arc, LazyLock}; use tempfile::TempDir; use tvix_castore::{ blobservice::{BlobService, MemoryBlobService}, directoryservice::{DirectoryService, MemoryDirectoryService}, }; - lazy_static! { - static ref TMPDIR_OCI_1: TempDir = TempDir::new().unwrap(); - } + static TMPDIR_OCI_1: LazyLock<TempDir> = LazyLock::new(|| TempDir::new().unwrap()); #[rstest] /// This uses an unsupported scheme. |