aboutsummaryrefslogtreecommitdiff
path: root/src/show.rs
diff options
context:
space:
mode:
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),*) => ({