aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/toml.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/toml.rs b/src/toml.rs
index 7e5908d..d768b7c 100644
--- a/src/toml.rs
+++ b/src/toml.rs
@@ -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
}
},