diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-09-17 09:33:34 -0400 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-09-17 09:33:34 -0400 |
commit | 5f5bd93203aa4c8e0602eb4def2d73d385cba74c (patch) | |
tree | d7dbc8a309caa7eb3e1930229afaf1c524038a92 | |
parent | c9a6415e15eeca35c9e7b67e4e52472caf75cdda (diff) | |
parent | 25703d5f79e75b5101eaa4aaf25706c602a7ca31 (diff) | |
download | milf-rs-5f5bd93203aa4c8e0602eb4def2d73d385cba74c.tar.gz milf-rs-5f5bd93203aa4c8e0602eb4def2d73d385cba74c.zip |
Merge pull request #16 from vhbit/mut-conventions
Updated to _mut conventions
-rw-r--r-- | src/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.rs b/src/parser.rs index ec083dd..6632168 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -634,7 +634,7 @@ impl<'a> Parser<'a> { continue } 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, _ => { self.errors.push(ParserError { @@ -691,7 +691,7 @@ impl<'a> Parser<'a> { } match into.find_mut(&key) { 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) { self.errors.push(ParserError { lo: key_lo, |