summaryrefslogtreecommitdiffstats
path: root/tests/tester.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tester.rs')
-rw-r--r--tests/tester.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tester.rs b/tests/tester.rs
index 8a1a0f3b..8ddea11f 100644
--- a/tests/tester.rs
+++ b/tests/tester.rs
@@ -4,7 +4,7 @@ use std::io::Read;
use std::path::{Path, PathBuf};
use std::process::Command;
-use tempdir::TempDir;
+use tempfile::TempDir;
use git2::build::CheckoutBuilder;
use git2::Repository;
@@ -70,7 +70,7 @@ impl Default for BatTester {
fn create_sample_directory() -> Result<TempDir, git2::Error> {
// Create temp directory and initialize repository
- let temp_dir = TempDir::new("bat-tests").expect("Temp directory");
+ let temp_dir = TempDir::new().expect("Temp directory");
let repo = Repository::init(&temp_dir)?;
// Copy over `sample.rs`