aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parser.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parser.rs b/src/parser.rs
index d9c04cb..5224804 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -270,9 +270,10 @@ impl<'a> Parser<'a> {
let mut table = TomlTable(BTreeMap::new(), false);
if !self.values(&mut table) { return None }
if array {
- self.insert_array(&mut ret, &*keys, Value::Table(table), start)
+ self.insert_array(&mut ret, &keys, Value::Table(table),
+ start)
} else {
- self.insert_table(&mut ret, &*keys, table, start)
+ self.insert_table(&mut ret, &keys, table, start)
}
} else {
if !self.values(&mut ret) { return None }