diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-08-18 17:52:38 -0700 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-08-28 09:12:54 -0700 |
| commit | 276b8b125d3f60cebab702542b60207429fbb333 (patch) | |
| tree | 022549e5a1b801df28b222d3bcd37194b997b849 /src/libglob | |
| parent | 3a52ef4613f85fba1ecfd8746388bf34a5499bf9 (diff) | |
| download | rust-276b8b125d3f60cebab702542b60207429fbb333.tar.gz rust-276b8b125d3f60cebab702542b60207429fbb333.zip | |
Fallout from stabilizing core::option
Diffstat (limited to 'src/libglob')
| -rw-r--r-- | src/libglob/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libglob/lib.rs b/src/libglob/lib.rs index c9af44c9479..90afee65264 100644 --- a/src/libglob/lib.rs +++ b/src/libglob/lib.rs @@ -106,7 +106,7 @@ pub fn glob_with(pattern: &str, options: MatchOptions) -> Paths { let mut root = os::getcwd(); let pat_root = Path::new(pattern).root_path(); if pat_root.is_some() { - if check_windows_verbatim(pat_root.get_ref()) { + if check_windows_verbatim(pat_root.as_ref().unwrap()) { // FIXME: How do we want to handle verbatim paths? I'm inclined to return nothing, // since we can't very well find all UNC shares with a 1-letter server name. return Paths { @@ -116,7 +116,7 @@ pub fn glob_with(pattern: &str, options: MatchOptions) -> Paths { todo: Vec::new(), }; } - root.push(pat_root.get_ref()); + root.push(pat_root.as_ref().unwrap()); } let root_len = pat_root.map_or(0u, |p| p.as_vec().len()); |
