diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-07-17 09:39:33 -0400 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-07-17 09:39:33 -0400 |
commit | 05f8c0bc41a10f1e98e420f8d02d778541d13d48 (patch) | |
tree | 6e2b34ac020a2c087a609cd5dda860fbccbd69d0 /src | |
parent | 3a7ec7f4c4716d2967aedab2ef3d051c9cfc2041 (diff) | |
parent | 9b9a43a0340f12862086912cbee19c305157d291 (diff) | |
download | milf-rs-05f8c0bc41a10f1e98e420f8d02d778541d13d48.tar.gz milf-rs-05f8c0bc41a10f1e98e420f8d02d778541d13d48.zip |
Merge pull request #6 from michaelsproul/vec-get
Remove use of deprecated vector get method.
Diffstat (limited to 'src')
-rw-r--r-- | src/toml.rs | 2 |
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 } }, |