From 1346affca989975890b3a0d906b54c10c814e156 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 20 Dec 2014 22:33:40 -0800 Subject: Remove weird 'invalid toml array of tables' printing Closes #42 --- src/show.rs | 9 +-------- 1 file changed, 1 insertion(+), 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), } } } -- cgit v1.2.3