Skip to content

Commit df456fd

Browse files
committed
Bump to 0.1.8
1 parent d5186c3 commit df456fd

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "glob"
4-
version = "0.1.7"
4+
version = "0.1.8"
55
authors = ["The Rust Project Developers"]
66
license = "MIT/Apache-2.0"
77
homepage = "https://github.com/rust-lang/glob"

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
use std::ascii::AsciiExt;
3030
use std::cell::Cell;
3131
use std::{cmp, path};
32-
use std::io::fs::{self, PathExtensions};
32+
use std::old_io::fs::{self, PathExtensions};
3333
use std::path::is_sep;
3434
use std::string::String;
3535
use std::fmt;
36-
use std::io::IoError;
36+
use std::old_io::IoError;
3737

3838
use PatternToken::{Char, AnyChar, AnySequence, AnyRecursiveSequence, AnyWithin, AnyExcept};
3939
use CharSpecifier::{SingleChar, CharRange};
@@ -906,7 +906,7 @@ mod test {
906906

907907
let err = err.err().unwrap();
908908
assert!(*err.path() == Path::new("/root"));
909-
assert!(err.error().kind == ::std::io::IoErrorKind::PermissionDenied);
909+
assert!(err.error().kind == ::std::old_io::IoErrorKind::PermissionDenied);
910910
}
911911

912912
#[test]

tests/glob-std.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@
1010

1111
// ignore-windows TempDir may cause IoError on windows: #10462
1212

13-
#![feature(macro_rules)]
14-
1513
extern crate glob;
1614

1715
use glob::glob;
1816
use std::os;
19-
use std::io;
20-
use std::io::TempDir;
17+
use std::old_io;
18+
use std::old_io::TempDir;
2119

2220
macro_rules! assert_eq { ($e1:expr, $e2:expr) => (
2321
if $e1 != $e2 {
@@ -29,9 +27,9 @@ macro_rules! assert_eq { ($e1:expr, $e2:expr) => (
2927
fn main() {
3028
fn mk_file(path: &str, directory: bool) {
3129
if directory {
32-
io::fs::mkdir(&Path::new(path), io::USER_RWX).unwrap();
30+
old_io::fs::mkdir(&Path::new(path), old_io::USER_RWX).unwrap();
3331
} else {
34-
io::File::create(&Path::new(path)).unwrap();
32+
old_io::File::create(&Path::new(path)).unwrap();
3533
}
3634
}
3735

0 commit comments

Comments
 (0)