aboutsummaryrefslogtreecommitdiff
path: root/src/show.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-11-18 10:18:04 -0600
committerAlex Crichton <alex@alexcrichton.com>2014-11-18 10:18:04 -0600
commit4bb575fdaf5fd88580abbac6fdb057ef76d32251 (patch)
treecb8fc875c37fcff679bf3d99a594ffb3f2eb63a1 /src/show.rs
parentc5284ffc32585401f01aa925ebd6d3fe0679e7c6 (diff)
parentbfcfa89e9566ef179fae47e62a8f8290ff3a3980 (diff)
downloadmilf-rs-4bb575fdaf5fd88580abbac6fdb057ef76d32251.tar.gz
milf-rs-4bb575fdaf5fd88580abbac6fdb057ef76d32251.zip
Merge pull request #31 from vberger/master
Update to namespaced enum variants.
Diffstat (limited to 'src/show.rs')
-rw-r--r--src/show.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/show.rs b/src/show.rs
index 27733ed..d754c7c 100644
--- a/src/show.rs
+++ b/src/show.rs
@@ -1,6 +1,7 @@
use std::fmt;
-use {Value, String, Integer, Float, Boolean, Datetime, Array, Table, TomlTable};
+use {Value, TomlTable};
+use Value::{String, Integer, Float, Boolean, Datetime, Array, Table};
struct Printer<'a, 'b:'a> {
output: &'a mut fmt::Formatter<'b>,
@@ -100,7 +101,8 @@ impl<'a, 'b> Printer<'a, 'b> {
#[cfg(test)]
#[allow(warnings)]
mod tests {
- use {Value, String, Integer, Float, Boolean, Datetime, Array, Table};
+ use Value;
+ use Value::{String, Integer, Float, Boolean, Datetime, Array, Table};
use std::collections::TreeMap;
macro_rules! map( ($($k:expr: $v:expr),*) => ({