Replace tempdir crate with tempfile
This commit is contained in:
parent
f8604e88ef
commit
fd6f71d287
15 changed files with 78 additions and 119 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue