From bfcfa89e9566ef179fae47e62a8f8290ff3a3980 Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Tue, 18 Nov 2014 09:13:21 +0100 Subject: Update to namespaced enum variants. --- src/lib.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 2e27dea..df6abbc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -50,11 +50,15 @@ use std::string; pub use parser::{Parser, ParserError}; pub use serialization::{Encoder, encode, encode_str}; pub use serialization::{Decoder, decode, decode_str}; -pub use serialization::{Error, NeedsKey, NoValue}; -pub use serialization::{InvalidMapKeyLocation, InvalidMapKeyType}; -pub use serialization::{DecodeError, ApplicationError, ExpectedField}; -pub use serialization::{ExpectedMapElement, ExpectedMapKey, NoEnumVariants}; -pub use serialization::{ExpectedType, NilTooLong}; +pub use serialization::Error; +pub use serialization::Error::{NeedsKey, NoValue}; +pub use serialization::Error::{InvalidMapKeyLocation, InvalidMapKeyType}; +pub use serialization::{DecodeError, DecodeErrorKind}; +pub use serialization::DecodeErrorKind::{ApplicationError, ExpectedField}; +pub use serialization::DecodeErrorKind::{ExpectedMapElement, ExpectedMapKey, NoEnumVariants}; +pub use serialization::DecodeErrorKind::{ExpectedType, NilTooLong}; + +pub use Value::{String, Integer, Float, Boolean, Datetime, Array, Table}; mod parser; mod show; -- cgit v1.2.3