Merge pull request #6 from michaelsproul/vec-get

Remove use of deprecated vector get method.
This commit is contained in:
Alex Crichton 2014-07-17 09:39:33 -04:00
commit 05f8c0bc41

View file

@ -184,7 +184,7 @@ impl Value {
&Array(ref v) => {
let idx: Option<uint> = FromStr::from_str(key);
match idx {
Some(idx) if idx < v.len() => cur_value = v.get(idx),
Some(idx) if idx < v.len() => cur_value = &v[idx],
_ => return None
}
},