]> git.lizzy.rs Git - rust.git/commit
Clean up the other Slice*Inclusive impls for str
authorMichael Lamparski <diagonaldevice@gmail.com>
Mon, 30 Apr 2018 11:36:46 +0000 (07:36 -0400)
committerMichael Lamparski <diagonaldevice@gmail.com>
Mon, 30 Apr 2018 11:36:46 +0000 (07:36 -0400)
commit6b749b011350830f47a93f1efce986b3c02c4342
tree80676e8bf0a5a208ae718f4a5f5932fbafa8c84b
parent5ab4c811caba9cfac1488919efae6c6675e68e4c
Clean up the other Slice*Inclusive impls for str

A previous PR fixed one method that was legitimately buggy;
this cleans up the rest to be less diverse, mirroring the
corresponding impls on [T] to the greatest extent possible
without introducing any unnecessary UTF-8 boundary checks at 0.
src/libcore/str/mod.rs