diff options
author | Andrew Gallant <jamslam@gmail.com> | 2019-08-06 09:46:05 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2019-08-06 09:46:05 -0400 |
commit | 31807f805a793c254587105ca8ee0d41dfe3004b (patch) | |
tree | 10e28947b264ff1a116a9caad0cd97651b0fc980 /ignore/src/walk.rs | |
parent | 4de227fd9a1bbc0396c1f1e6d5209a1171fad88a (diff) |
deps: drop tempfile
We were only using it to create temporary directories for `ignore`
tests, but it pulls in a bunch of dependencies and we don't really need
randomness. So just use our own simple wrapper instead.
Diffstat (limited to 'ignore/src/walk.rs')
-rw-r--r-- | ignore/src/walk.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ignore/src/walk.rs b/ignore/src/walk.rs index df796d41..b3e05f08 100644 --- a/ignore/src/walk.rs +++ b/ignore/src/walk.rs @@ -1730,8 +1730,7 @@ mod tests { use std::path::Path; use std::sync::{Arc, Mutex}; - use tempfile::{self, TempDir}; - + use tests::TempDir; use super::{DirEntry, WalkBuilder, WalkState}; fn wfile<P: AsRef<Path>>(path: P, contents: &str) { @@ -1818,7 +1817,7 @@ mod tests { } fn tmpdir(prefix: &str) -> TempDir { - tempfile::Builder::new().prefix(prefix).tempdir().unwrap() + TempDir::new().unwrap() } fn assert_paths( |