aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorValerii Hiora <valerii.hiora@gmail.com>2015-01-07 18:58:50 +0200
committerValerii Hiora <valerii.hiora@gmail.com>2015-01-08 19:50:03 +0200
commit1dfb94afba78d8f796e59756d4c5b45a4f5ce5df (patch)
treeb411c536a294f695c5c4e8eff3cd87bdbf19034e /src/lib.rs
parent6195861f53c6731bedce5900a624986b8d4247c8 (diff)
downloadmilf-rs-1dfb94afba78d8f796e59756d4c5b45a4f5ce5df.tar.gz
milf-rs-1dfb94afba78d8f796e59756d4c5b45a4f5ce5df.zip
Update to master
- features - macro reform - String/Show split in formatter - staging
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 360ebb1..4d714f0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -15,7 +15,7 @@
//! "#;
//!
//! let value = toml::Parser::new(toml).parse().unwrap();
-//! println!("{}", value);
+//! println!("{:?}", value);
//! ```
//!
//! # Conversions
@@ -36,9 +36,9 @@
//! [2]: https://github.com/BurntSushi/toml-test
//!
-#![feature(macro_rules)]
-#![feature(associated_types)]
#![deny(missing_docs)]
+#![allow(staged_experimental)]
+#![allow(staged_unstable)]
#![cfg_attr(test, deny(warnings))]
extern crate "rustc-serialize" as rustc_serialize;
@@ -63,7 +63,7 @@ mod show;
mod serialization;
#[cfg(test)]mod test;
/// Representation of a TOML value.
-#[derive(PartialEq, Clone)]
+#[derive(PartialEq, Clone, Show)]
#[allow(missing_docs)]
pub enum Value {
String(string::String),
@@ -159,6 +159,7 @@ impl Value {
/// Note: arrays have zero-based indexes.
///
/// ```
+ /// # #![allow(staged_unstable)]
/// let toml = r#"
/// [test]
/// foo = "bar"