diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-12-20 22:33:40 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-12-20 22:33:40 -0800 |
commit | 1346affca989975890b3a0d906b54c10c814e156 (patch) | |
tree | 2f0f7a22480c37e5b216f704d4783f7cc95ec59a | |
parent | f2f8d3fe6e098d16d10d19cee5a4b8f2e1b367ae (diff) | |
download | milf-rs-1346affca989975890b3a0d906b54c10c814e156.tar.gz milf-rs-1346affca989975890b3a0d906b54c10c814e156.zip |
Remove weird 'invalid toml array of tables' printing
Closes #42
-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), } } } |