Remove use of deprecated vector get method.
This commit is contained in:
parent
3a7ec7f4c4
commit
9b9a43a034
|
@ -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
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue