1
Fork 0

deprecate Vec::get

This commit is contained in:
Nick Cameron 2014-07-15 11:37:25 +12:00
parent b35d1a8368
commit aa760a849e
25 changed files with 91 additions and 88 deletions

View file

@ -1015,7 +1015,7 @@ impl Stack {
/// lower indices are at the bottom of the stack while higher indices are
/// at the top.
pub fn get<'l>(&'l self, idx: uint) -> StackElement<'l> {
match *self.stack.get(idx) {
match self.stack[idx] {
InternalIndex(i) => { Index(i) }
InternalKey(start, size) => {
Key(str::from_utf8(