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) => {
|
&Array(ref v) => {
|
||||||
let idx: Option<uint> = FromStr::from_str(key);
|
let idx: Option<uint> = FromStr::from_str(key);
|
||||||
match idx {
|
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
|
_ => return None
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue