From 9b9a43a0340f12862086912cbee19c305157d291 Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Thu, 17 Jul 2014 20:52:05 +1000 Subject: Remove use of deprecated vector get method. --- src/toml.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 = 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 } }, -- cgit v1.2.3