Skip to content

Commit a0e6160

Browse files
committed
Update to rust master
1 parent 597ebc6 commit a0e6160

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ pub fn glob_with(pattern: &str, options: &MatchOptions) -> Result<Paths, Pattern
168168
let scope = root.map(to_scope).unwrap_or_else(|| Path::new("."));
169169

170170
let mut dir_patterns = Vec::new();
171-
let mut components = pattern[cmp::min(root_len, pattern.len())..]
172-
.split_terminator(is_sep);
171+
let components = pattern[cmp::min(root_len, pattern.len())..]
172+
.split_terminator(is_sep);
173173

174174
for component in components {
175175
let compiled = try!(Pattern::new(component));

tests/glob-std.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// ignore-windows TempDir may cause IoError on windows: #10462
1212
#![feature(path, os, io)]
1313

14+
#![feature(path, os, io)]
15+
1416
extern crate glob;
1517

1618
use glob::glob;
@@ -34,10 +36,6 @@ fn main() {
3436
}
3537
}
3638

37-
fn abs_path(path: &str) -> Path {
38-
os::getcwd().unwrap().join(&Path::new(path))
39-
}
40-
4139
fn glob_vec(pattern: &str) -> Vec<Path> {
4240
glob(pattern).unwrap().map(|r| r.unwrap()).collect()
4341
}

0 commit comments

Comments
 (0)