Updated to _mut conventions

This commit is contained in:
Valerii Hiora 2014-09-17 10:00:15 +03:00
parent c9a6415e15
commit 25703d5f79

View file

@ -634,7 +634,7 @@ impl<'a> Parser<'a> {
continue continue
} }
Array(ref mut array) => { Array(ref mut array) => {
match array.as_mut_slice().mut_last() { match array.as_mut_slice().last_mut() {
Some(&Table(ref mut table)) => cur = table, Some(&Table(ref mut table)) => cur = table,
_ => { _ => {
self.errors.push(ParserError { self.errors.push(ParserError {
@ -691,7 +691,7 @@ impl<'a> Parser<'a> {
} }
match into.find_mut(&key) { match into.find_mut(&key) {
Some(&Table(ref mut table)) => { Some(&Table(ref mut table)) => {
for (k, v) in value.move_iter() { for (k, v) in value.into_iter() {
if !table.insert(k.clone(), v) { if !table.insert(k.clone(), v) {
self.errors.push(ParserError { self.errors.push(ParserError {
lo: key_lo, lo: key_lo,