Skip to content

Commit

Permalink
Replace deprecated tempdir with tempfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Aug 8, 2018
1 parent a3c40f8 commit 504673d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tokio-fs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tokio-io = { version = "0.1.6", path = "../tokio-io" }

[dev-dependencies]
rand = "0.5"
tempdir = "0.3.7"
tempfile = "3"
tokio-io = { version = "0.1.6", path = "../tokio-io" }
tokio-codec = { version = "0.1.0", path = "../tokio-codec" }
tokio = { version = "0.1.7", path = ".." }
4 changes: 2 additions & 2 deletions tokio-fs/tests/file.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extern crate futures;
extern crate rand;
extern crate tempdir;
extern crate tempfile;
extern crate tokio_fs;
extern crate tokio_io;
extern crate tokio_threadpool;
Expand All @@ -13,7 +13,7 @@ use futures::Future;
use futures::future::poll_fn;
use futures::sync::oneshot;
use rand::{thread_rng, Rng};
use tempdir::TempDir;
use tempfile::TempDir;

use std::fs::File as StdFile;
use std::io::{Read, SeekFrom};
Expand Down
2 changes: 1 addition & 1 deletion tokio-uds/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ tokio-io = { version = "0.1.6", path = "../tokio-io" }

[dev-dependencies]
tokio = { version = "0.1.6", path = "../" }
tempdir = "0.3.7"
tempfile = "3"
4 changes: 2 additions & 2 deletions tokio-uds/tests/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extern crate futures;
extern crate tokio;
extern crate tokio_uds;

extern crate tempdir;
extern crate tempfile;

use tokio_uds::*;

Expand All @@ -13,7 +13,7 @@ use tokio::runtime::current_thread::Runtime;

use futures::{Future, Stream};
use futures::sync::oneshot;
use tempdir::TempDir;
use tempfile::TempDir;

macro_rules! t {
($e:expr) => (match $e {
Expand Down

0 comments on commit 504673d

Please sign in to comment.