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

@ -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