From 76e156e3bebf6b612ad2f981cf814cb64a45c533 Mon Sep 17 00:00:00 2001 From: Matt Bilker Date: Mon, 3 Dec 2018 08:03:33 +0000 Subject: [PATCH] lib: export StandardType --- src/lib.rs | 2 +- src/value/mod.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e4cd485..7a2b5c1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,7 +35,6 @@ mod value; mod writer; use node::NodeDefinition; -use node_types::StandardType; use text_reader::TextXmlReader; use to_text_xml::TextXmlWriter; @@ -46,6 +45,7 @@ pub use printer::Printer; pub use reader::Reader; pub use error::{KbinError, KbinErrorKind, Result}; pub use node::{Node, NodeCollection}; +pub use node_types::StandardType; pub use options::Options; pub use to_element::ToElement; pub use to_text_xml::ToTextXml; diff --git a/src/value/mod.rs b/src/value/mod.rs index 54351e7..d500fca 100644 --- a/src/value/mod.rs +++ b/src/value/mod.rs @@ -202,7 +202,6 @@ macro_rules! tuple { if is_array { let value = match node_type.count { - //0 => return Err(KbinErrorKind::InvalidState.into()), 1 => { // May have a node (i.e. `Ip4`) that is only a single count, but it // can be part of an array