diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2013-12-23 16:20:52 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2014-01-21 15:48:47 -0800 |
| commit | bada25e425ae30583ad343e36a034e59c66fcad6 (patch) | |
| tree | 4e07ddbe72ef54075d401322c8283de064f02b4e /src/librustpkg | |
| parent | aa66b91767ce92c45192ca11718575529d631d21 (diff) | |
[std::vec] Rename .pop_opt() to .pop(), drop the old .pop() behavior
Diffstat (limited to 'src/librustpkg')
| -rw-r--r-- | src/librustpkg/crate_id.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustpkg/crate_id.rs b/src/librustpkg/crate_id.rs index 9a3c47823e0..239abbe546f 100644 --- a/src/librustpkg/crate_id.rs +++ b/src/librustpkg/crate_id.rs @@ -121,7 +121,7 @@ impl Iterator<(Path, Path)> for Prefixes { None } else { - let last = self.components.pop(); + let last = self.components.pop().unwrap(); self.remaining.unshift(last); // converting to str and then back is a little unfortunate Some((Path::new(self.components.connect("/")), |
