diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-09-27 22:20:47 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-09-28 13:27:45 -0700 |
| commit | 21519bc7e0a32e388e8b12be5d36d4440129f417 (patch) | |
| tree | bcdd50c7816a21a5d5422c114e722df1a5dcc65d /src/libcore/path.rs | |
| parent | 6c15dd6d8217a166cfd0d364a434771803123432 (diff) | |
| download | rust-21519bc7e0a32e388e8b12be5d36d4440129f417.tar.gz rust-21519bc7e0a32e388e8b12be5d36d4440129f417.zip | |
demode vec
Diffstat (limited to 'src/libcore/path.rs')
| -rw-r--r-- | src/libcore/path.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/path.rs b/src/libcore/path.rs index c384745bb5e..1afcc7ba09d 100644 --- a/src/libcore/path.rs +++ b/src/libcore/path.rs @@ -221,7 +221,7 @@ impl PosixPath : GenericPath { pure fn pop() -> PosixPath { let mut cs = copy self.components; if cs.len() != 0 { - unsafe { vec::pop(cs); } + unsafe { cs.pop(); } } return PosixPath { components: move cs, ..self } } @@ -415,7 +415,7 @@ impl WindowsPath : GenericPath { pure fn pop() -> WindowsPath { let mut cs = copy self.components; if cs.len() != 0 { - unsafe { vec::pop(cs); } + unsafe { cs.pop(); } } return WindowsPath { components: move cs, ..self } } @@ -437,7 +437,7 @@ pub pure fn normalize(components: &[~str]) -> ~[~str] { if *c == ~"." && components.len() > 1 { loop; } if *c == ~"" { loop; } if *c == ~".." && cs.len() != 0 { - vec::pop(cs); + cs.pop(); loop; } cs.push(copy *c); |
