Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ categories = ["filesystem"]
rust-version = "1.23.0"

[dev-dependencies]
# FIXME: This should be replaced by `tempfile`
tempdir = "0.3"
doc-comment = "0.3"
tempfile = "3.4.0"
7 changes: 3 additions & 4 deletions tests/glob-std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
#![cfg_attr(test, deny(warnings))]

extern crate glob;
extern crate tempdir;
extern crate tempfile;

use glob::{glob, glob_with};
use std::env;
use std::fs;
use std::path::PathBuf;
use tempdir::TempDir;
use tempfile::TempDir;

#[test]
fn main() {
Expand Down Expand Up @@ -68,8 +68,7 @@ fn main() {
.collect()
}

let root = TempDir::new("glob-tests");
let root = root.ok().expect("Should have created a temp directory");
let root = TempDir::new().expect("Should have created a temp directory");
assert!(env::set_current_dir(root.path()).is_ok());

mk_file("aaa", true);
Expand Down
Loading