From: Pietro Albini Date: Sat, 22 Sep 2018 07:56:43 +0000 (+0200) Subject: Rollup merge of #54422 - ljedrz:simplify_first_last, r=Mark-Simulacrum X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=452d9d07a09a0dece5024eb6b4bd4d8dbb73774b;p=rust.git Rollup merge of #54422 - ljedrz:simplify_first_last, r=Mark-Simulacrum 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 --- 452d9d07a09a0dece5024eb6b4bd4d8dbb73774b