aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-06-07 23:13:14 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-06-07 23:48:32 -0700
commit68924534e271fe5ce534e9d274af081ce2579803 (patch)
tree4580491df2531c79acab861912faeb33d9134653
parente96e25bec74e9dccbf56275913894bda561a3154 (diff)
downloadmilf-rs-68924534e271fe5ce534e9d274af081ce2579803.tar.gz
milf-rs-68924534e271fe5ce534e9d274af081ce2579803.zip
Use deref coercions
-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 }