diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-12-06 14:51:51 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-12-06 14:51:51 -0800 |
commit | 6e4e8251b1b3b6903ac91a3ff45807de6410c173 (patch) | |
tree | da8384f77b071afd9626b8ce7c38082ad1b55e8b /src/serialization.rs | |
parent | b6e487e05bcc1696c2d5665e12c65257b51336b5 (diff) | |
download | milf-rs-6e4e8251b1b3b6903ac91a3ff45807de6410c173.tar.gz milf-rs-6e4e8251b1b3b6903ac91a3ff45807de6410c173.zip |
Update to rust master
Closes #34
Diffstat (limited to 'src/serialization.rs')
-rw-r--r-- | src/serialization.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/serialization.rs b/src/serialization.rs index e30de48..ba96f89 100644 --- a/src/serialization.rs +++ b/src/serialization.rs @@ -4,7 +4,8 @@ use std::fmt; use std::error::Error as StdError; use serialize; -use {Value, Parser, TomlTable}; +use {Value, Parser}; +use Table as TomlTable; use Value::{Table, Array, Integer, Float, Boolean}; use self::EncoderState::{Start, NextKey, NextArray, NextMapKey}; @@ -26,7 +27,7 @@ use self::DecodeErrorKind::{ExpectedMapElement, NoEnumVariants, NilTooLong}; /// extern crate toml; /// /// # fn main() { -/// use toml::{Encoder, Integer}; +/// use toml::{Encoder, Value}; /// use serialize::Encodable; /// /// #[deriving(Encodable)] @@ -36,7 +37,7 @@ use self::DecodeErrorKind::{ExpectedMapElement, NoEnumVariants, NilTooLong}; /// let mut e = Encoder::new(); /// my_struct.encode(&mut e).unwrap(); /// -/// assert_eq!(e.toml.get(&"foo".to_string()), Some(&Integer(4))) +/// assert_eq!(e.toml.get(&"foo".to_string()), Some(&Value::Integer(4))) /// # } /// ``` pub struct Encoder { |