Use deref coercions

This commit is contained in:
Alex Crichton 2015-06-07 23:13:14 -07:00
parent e96e25bec7
commit 68924534e2

View file

@ -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 }