Skip to content

Commit 88738e0

Browse files
committed
Update to rust master
1 parent c4495d9 commit 88738e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub fn glob_with(pattern: &str, options: MatchOptions) -> Paths {
9393
let mut root = os::getcwd();
9494
let pat_root = Path::new(pattern).root_path();
9595
if pat_root.is_some() {
96-
if check_windows_verbatim(pat_root.get_ref()) {
96+
if check_windows_verbatim(pat_root.as_ref().unwrap()) {
9797
// FIXME: How do we want to handle verbatim paths? I'm inclined to return nothing,
9898
// since we can't very well find all UNC shares with a 1-letter server name.
9999
return Paths {
@@ -103,7 +103,7 @@ pub fn glob_with(pattern: &str, options: MatchOptions) -> Paths {
103103
todo: Vec::new(),
104104
};
105105
}
106-
root.push(pat_root.get_ref());
106+
root.push(pat_root.as_ref().unwrap());
107107
}
108108

109109
let root_len = pat_root.map_or(0u, |p| p.as_vec().len());

tests/glob-std.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn main() {
4444
}
4545

4646
let root = TempDir::new("glob-tests");
47-
let root = root.expect("Should have created a temp directory");
47+
let root = root.ok().expect("Should have created a temp directory");
4848
assert!(os::change_dir(root.path()));
4949

5050
mk_file("aaa", true);

0 commit comments

Comments
 (0)