Replace tempdir crate with tempfile

This commit is contained in:
Julian Braha 2024-01-24 17:58:09 +00:00
parent f8604e88ef
commit fd6f71d287
15 changed files with 78 additions and 119 deletions

View file

@ -6,13 +6,13 @@ use std::{
ffi::OsStr,
path::{Path, PathBuf},
};
use tempdir::TempDir;
use tempfile::TempDir;
pub use assertions::*;
pub use marked_text::*;
pub fn temp_tree(tree: serde_json::Value) -> TempDir {
let dir = TempDir::new("").unwrap();
let dir = TempDir::new().unwrap();
write_tree(dir.path(), tree);
dir
}