Use deref coercions
This commit is contained in:
parent
e96e25bec7
commit
68924534e2
|
@ -270,9 +270,10 @@ impl<'a> Parser<'a> {
|
||||||
let mut table = TomlTable(BTreeMap::new(), false);
|
let mut table = TomlTable(BTreeMap::new(), false);
|
||||||
if !self.values(&mut table) { return None }
|
if !self.values(&mut table) { return None }
|
||||||
if array {
|
if array {
|
||||||
self.insert_array(&mut ret, &*keys, Value::Table(table), start)
|
self.insert_array(&mut ret, &keys, Value::Table(table),
|
||||||
|
start)
|
||||||
} else {
|
} else {
|
||||||
self.insert_table(&mut ret, &*keys, table, start)
|
self.insert_table(&mut ret, &keys, table, start)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if !self.values(&mut ret) { return None }
|
if !self.values(&mut ret) { return None }
|
||||||
|
|
Loading…
Reference in a new issue