Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit cdcaeb0

Browse files
authored
Merge pull request #206 from alexanderkjall/replace-tempdir-with-tempfile
replace the tempdir crate with tempfile
2 parents b70d575 + ab6029d commit cdcaeb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ log = "0.4.1"
2727
duct = "0.9"
2828
env_logger = "0.5.0-rc.1"
2929
log = "0.4.1"
30-
tempdir = "0.3.5"
30+
tempfile = "3"
3131
proptest = "0.7.0"
3232
similar = "0.4.0"
3333

tests/parse_and_replace.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::ffi::OsString;
99
use std::fs;
1010
use std::path::{Path, PathBuf};
1111
use std::process::Output;
12-
use tempdir::TempDir;
12+
use tempfile::tempdir;
1313

1414
mod fixmode {
1515
pub const EVERYTHING: &str = "yolo";
@@ -24,7 +24,7 @@ mod settings {
2424
}
2525

2626
fn compile(file: &Path, mode: &str) -> Result<Output, Error> {
27-
let tmp = TempDir::new("rustfix-tests")?;
27+
let tmp = tempdir()?;
2828

2929
let mut args: Vec<OsString> = vec![
3030
file.into(),

0 commit comments

Comments
 (0)