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/show.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/show.rs') 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),*) => ({ -- cgit v1.2.3