diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-28 13:00:07 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-28 16:57:36 -0700 |
| commit | 8766c2e35b6454ff51ab3deab3cd334ebd033da1 (patch) | |
| tree | f5f6d0c3a53908a8d91f7b1ab47f5bd35d729d69 /src/libcore/path.rs | |
| parent | 517206fd0876c17d5e1540ea5c544a51adf086de (diff) | |
core: Demode patterns
Diffstat (limited to 'src/libcore/path.rs')
| -rw-r--r-- | src/libcore/path.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/path.rs b/src/libcore/path.rs index 1afcc7ba09d..6d023ed1bfb 100644 --- a/src/libcore/path.rs +++ b/src/libcore/path.rs @@ -167,7 +167,7 @@ impl PosixPath : GenericPath { if t.len() == 0 { match self.filestem() { None => copy self, - Some(s) => self.with_filename(s) + Some(ref s) => self.with_filename(*s) } } else { let t = ~"." + str::from_slice(t); @@ -239,11 +239,11 @@ impl WindowsPath : ToStr { fn to_str() -> ~str { let mut s = ~""; match self.host { - Some(h) => { s += "\\\\"; s += h; } + Some(ref h) => { s += "\\\\"; s += *h; } None => { } } match self.device { - Some(d) => { s += d; s += ":"; } + Some(ref d) => { s += *d; s += ":"; } None => { } } if self.is_absolute { @@ -358,7 +358,7 @@ impl WindowsPath : GenericPath { if t.len() == 0 { match self.filestem() { None => copy self, - Some(s) => self.with_filename(s) + Some(ref s) => self.with_filename(*s) } } else { let t = ~"." + str::from_slice(t); |
