diff options
author | Valerii Hiora <valerii.hiora@gmail.com> | 2015-01-07 18:58:50 +0200 |
---|---|---|
committer | Valerii Hiora <valerii.hiora@gmail.com> | 2015-01-08 19:50:03 +0200 |
commit | 1dfb94afba78d8f796e59756d4c5b45a4f5ce5df (patch) | |
tree | b411c536a294f695c5c4e8eff3cd87bdbf19034e /src/lib.rs | |
parent | 6195861f53c6731bedce5900a624986b8d4247c8 (diff) | |
download | milf-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.rs | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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" |