about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2018-01-02 23:54:42 +0200
committerSebastian Dröge <sebastian@centricular.com>2018-01-13 12:18:55 +0200
commitaa0c08a22c32da5cc1db16fba2e5e6b762a47de5 (patch)
tree8796a580cd2a0dc79a27df5974b23343b9e34bb4 /src/liballoc
parente51a89a0ad35f42af9c39d4ada25a5ad9746cd62 (diff)
downloadrust-aa0c08a22c32da5cc1db16fba2e5e6b762a47de5.tar.gz
rust-aa0c08a22c32da5cc1db16fba2e5e6b762a47de5.zip
Apply review comments from @bluss
- Simplify nth() by making use of the fact that the slice is evenly
  divisible by the chunk size, and calling next() instead of
  duplicating it
- Call next_back() in last(), they are equivalent
- Implement ExactSizeIterator::is_empty()
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions