Migrate from unmaintained tempdir to tempfile (#6476)

This commit is contained in:
Jonathan Tran
2025-04-25 17:19:04 -04:00
committed by GitHub
parent ffbe20b586
commit 6e7c44fca7
3 changed files with 3 additions and 22 deletions

View File

@ -69,7 +69,7 @@ serde = { workspace = true }
serde_json = { workspace = true }
sha2 = "0.10.8"
tabled = { version = "0.18.0", optional = true }
tempdir = "0.3.7"
tempfile = "3.19"
thiserror = "2.0.0"
toml = "0.8.19"
ts-rs = { version = "10.1.0", features = [

View File

@ -2719,7 +2719,7 @@ d = b + c
.parse_errs_as_err()
.unwrap();
let tmpdir = tempdir::TempDir::new("zma_kcl_load_all_modules").unwrap();
let tmpdir = tempfile::TempDir::with_prefix("zma_kcl_load_all_modules").unwrap();
tokio::fs::File::create(tmpdir.path().join("main.kcl"))
.await