diff options
| author | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2015-09-29 17:12:42 +0200 |
|---|---|---|
| committer | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2015-09-29 19:20:18 +0200 |
| commit | e2aa82c41395e04f69d615bf427128bc5b77cd38 (patch) | |
| tree | df684031ba5be794754507b3067ba54962769632 /src/libstd | |
| parent | cff04117064ddee95f425c49f22c8aa5a3a665d4 (diff) | |
| download | rust-e2aa82c41395e04f69d615bf427128bc5b77cd38.tar.gz rust-e2aa82c41395e04f69d615bf427128bc5b77cd38.zip | |
Remove redundant uses of Iterator::by_ref()
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/hash/table.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/collections/hash/table.rs b/src/libstd/collections/hash/table.rs index f8bd791f681..32541353a0a 100644 --- a/src/libstd/collections/hash/table.rs +++ b/src/libstd/collections/hash/table.rs @@ -958,7 +958,7 @@ impl<'a, K, V> ExactSizeIterator for Drain<'a, K, V> { impl<'a, K: 'a, V: 'a> Drop for Drain<'a, K, V> { fn drop(&mut self) { - for _ in self.by_ref() {} + for _ in self {} } } |
