diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/show.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/show.rs b/src/show.rs index 34d307f..5878eb6 100644 --- a/src/show.rs +++ b/src/show.rs @@ -35,18 +35,11 @@ impl fmt::Show for Value { } Boolean(b) => write!(f, "{}", b), Datetime(ref s) => write!(f, "{}", s), - Array(ref a) => { - match a.as_slice().head() { - Some(&Table(..)) => - try!(write!(f, "invalid toml array of tables")), - _ => {} - } - write!(f, "{}", a) - } Table(ref t) => { let mut p = Printer { output: f, stack: Vec::new() }; p.print(t) } + Array(ref a) => write!(f, "{}", a), } } } |