]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #54422 - ljedrz:simplify_first_last, r=Mark-Simulacrum
authorPietro Albini <pietro@pietroalbini.org>
Sat, 22 Sep 2018 07:56:43 +0000 (09:56 +0200)
committerGitHub <noreply@github.com>
Sat, 22 Sep 2018 07:56:43 +0000 (09:56 +0200)
Simplify slice's first(_mut) and last(_mut) with get

This change makes these functions easier to read and interpret. I haven't detected any difference in performance locally.

r? @Mark-Simulacrum

1  2 
src/libcore/slice/mod.rs

Simple merge