aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
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
}