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.
This commit is contained in:
Andrew Gallant
2019-08-06 09:46:05 -04:00
parent 4de227fd9a
commit 31807f805a
5 changed files with 67 additions and 108 deletions

View File

@@ -721,10 +721,9 @@ mod tests {
use std::io::Write;
use std::path::Path;
use tempfile::{self, TempDir};
use dir::IgnoreBuilder;
use gitignore::Gitignore;
use tests::TempDir;
use Error;
fn wfile<P: AsRef<Path>>(path: P, contents: &str) {
@@ -744,7 +743,7 @@ mod tests {
}
fn tmpdir(prefix: &str) -> TempDir {
tempfile::Builder::new().prefix(prefix).tempdir().unwrap()
TempDir::new().unwrap()
}
#[test]