diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-07 19:26:00 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-01-07 19:26:36 -0500 |
| commit | 7d72719efc25c6cdb8963c187e93df646ba65245 (patch) | |
| tree | 470d75c976f3fea1873ac7f7720b8139e77d026a /src/libsyntax | |
| parent | ed4bebda965bfbd6845aba52e0a6d622cd4a8d07 (diff) | |
| download | rust-7d72719efc25c6cdb8963c187e93df646ba65245.tar.gz rust-7d72719efc25c6cdb8963c187e93df646ba65245.zip | |
fix the `&mut _` patterns
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast_map/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ast_map/mod.rs b/src/libsyntax/ast_map/mod.rs index adcb9ff9cc2..e6f2979a3f8 100644 --- a/src/libsyntax/ast_map/mod.rs +++ b/src/libsyntax/ast_map/mod.rs @@ -90,7 +90,7 @@ impl<'a, T: Copy> Iterator for Values<'a, T> { type Item = T; fn next(&mut self) -> Option<T> { - let &Values(ref mut items) = self; + let &mut Values(ref mut items) = self; items.next().map(|&x| x) } } |
