aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-20 22:33:40 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-20 22:33:40 -0800
commit1346affca989975890b3a0d906b54c10c814e156 (patch)
tree2f0f7a22480c37e5b216f704d4783f7cc95ec59a /src
parentf2f8d3fe6e098d16d10d19cee5a4b8f2e1b367ae (diff)
downloadmilf-rs-1346affca989975890b3a0d906b54c10c814e156.tar.gz
milf-rs-1346affca989975890b3a0d906b54c10c814e156.zip
Remove weird 'invalid toml array of tables' printing
Closes #42
Diffstat (limited to 'src')
-rw-r--r--src/show.rs9
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),
}
}
}