Remove use of deprecated vector get method.

This commit is contained in:
Michael Sproul 2014-07-17 20:52:05 +10:00
parent 3a7ec7f4c4
commit 9b9a43a034

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
}
},