diff --git a/Cargo.toml b/Cargo.toml index 66a03e4..52ea4da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,5 @@ categories = ["filesystem"] rust-version = "1.23.0" [dev-dependencies] -# FIXME: This should be replaced by `tempfile` -tempdir = "0.3" doc-comment = "0.3" +tempfile = "3.4.0" diff --git a/tests/glob-std.rs b/tests/glob-std.rs index ba12701..d0ae095 100644 --- a/tests/glob-std.rs +++ b/tests/glob-std.rs @@ -13,13 +13,13 @@ #![cfg_attr(test, deny(warnings))] extern crate glob; -extern crate tempdir; +extern crate tempfile; use glob::{glob, glob_with}; use std::env; use std::fs; use std::path::PathBuf; -use tempdir::TempDir; +use tempfile::TempDir; #[test] fn main() { @@ -68,8 +68,7 @@ fn main() { .collect() } - let root = TempDir::new("glob-tests"); - let root = root.ok().expect("Should have created a temp directory"); + let root = TempDir::new().expect("Should have created a temp directory"); assert!(env::set_current_dir(root.path()).is_ok()); mk_file("aaa", true);