diff --git a/Cargo.toml b/Cargo.toml index 78655eb..42dee13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,4 +13,4 @@ license = "MIT" [dev-dependencies] tar = "0.4.9" -tempdir = "0.3.5" +tempfile = "3.3.0" diff --git a/tests/capturing.rs b/tests/capturing.rs index 551cc91..2f93e0f 100644 --- a/tests/capturing.rs +++ b/tests/capturing.rs @@ -1,7 +1,8 @@ -extern crate tempdir; +extern crate tempfile; extern crate tar; use std::path::Path; +use tempfile::Builder; const FILES: &'static [(&'static str, &'static str)] = &[ ("Cargo.toml", r#" @@ -83,8 +84,8 @@ fn capturing() { rootdir }; - let pintdir = tempdir::TempDir::new("fomat-macros-capturing-test") - .expect("Can't create tempdir"); + let pintdir = Builder::new() + .expect("Can't create tempdir"); unpack_files(pintdir.as_ref(), rootdir.to_str().unwrap()); assert!(