aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-09 11:48:06 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-09 11:50:54 -0800
commitd4319caa2073a8f7e14f4479d7f4d374357f890a (patch)
tree6f59d876d8e44ce473451aff6cd8fba8620d0d88 /src/lib.rs
parent98212466affbbe841ffea5bc88269732d9edd9f1 (diff)
downloadmilf-rs-d4319caa2073a8f7e14f4479d7f4d374357f890a.tar.gz
milf-rs-d4319caa2073a8f7e14f4479d7f4d374357f890a.zip
Bump to 0.1.11
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 4d714f0..a046189 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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
}