Skip to content

Commit

Permalink
Remove deprecated tempdir dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
NickeZ committed Jul 6, 2019
1 parent 3e61ddf commit c26316a
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 22 deletions.
125 changes: 107 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ edition = "2018"
ansi_term = "0.11.0"
assert_matches = "1.1.0"
atty = "0.2.1"
brev = "0.1.6"
brev = "0.2.0"
clap = "2.0.0"
dotenv = "0.13.0"
edit-distance = "2.0.0"
Expand All @@ -22,7 +22,7 @@ lazy_static = "1.0.0"
libc = "0.2.21"
log = "0.4.4"
target = "1.0.0"
tempdir = "0.3.5"
tempfile = "3.0.0"
unicode-width = "0.1.3"

[dependencies.ctrlc]
Expand Down
1 change: 0 additions & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ pub(crate) use std::{
pub(crate) use edit_distance::edit_distance;
pub(crate) use libc::{EXIT_FAILURE, EXIT_SUCCESS};
pub(crate) use log::warn;
pub(crate) use tempdir::TempDir;
pub(crate) use unicode_width::UnicodeWidthChar;

// Modules
Expand Down
2 changes: 1 addition & 1 deletion src/recipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl<'a> Recipe<'a> {
return Ok(());
}

let tmp = TempDir::new("just").map_err(|error| RuntimeError::TmpdirIoError {
let tmp = tempfile::Builder::new().prefix("just").tempdir().map_err(|error| RuntimeError::TmpdirIoError {
recipe: self.name,
io_error: error,
})?;
Expand Down

0 comments on commit c26316a

Please sign in to comment.