diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-01-09 11:48:06 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-09 11:50:54 -0800 |
commit | d4319caa2073a8f7e14f4479d7f4d374357f890a (patch) | |
tree | 6f59d876d8e44ce473451aff6cd8fba8620d0d88 /src/lib.rs | |
parent | 98212466affbbe841ffea5bc88269732d9edd9f1 (diff) | |
download | milf-rs-d4319caa2073a8f7e14f4479d7f4d374357f890a.tar.gz milf-rs-d4319caa2073a8f7e14f4479d7f4d374357f890a.zip |
Bump to 0.1.11
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -37,9 +37,8 @@ //! #![deny(missing_docs)] -#![allow(staged_experimental)] -#![allow(staged_unstable)] #![cfg_attr(test, deny(warnings))] +#![allow(unstable)] extern crate "rustc-serialize" as rustc_serialize; @@ -159,7 +158,7 @@ impl Value { /// Note: arrays have zero-based indexes. /// /// ``` - /// # #![allow(staged_unstable)] + /// # #![allow(unstable)] /// let toml = r#" /// [test] /// foo = "bar" @@ -192,7 +191,7 @@ impl Value { } }, &Value::Array(ref v) => { - match key.parse::<uint>() { + match key.parse::<usize>() { Some(idx) if idx < v.len() => cur_value = &v[idx], _ => return None } |