]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #89219 - nickkuk:str_split_once_get_unchecked, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Sun, 10 Oct 2021 12:29:48 +0000 (12:29 +0000)
committerbors <bors@rust-lang.org>
Sun, 10 Oct 2021 12:29:48 +0000 (12:29 +0000)
commit0c87288f92b7e6365d61cfbcbc453ea4c696c030
tree32ccf940f6499768f0e91555f4d327276adda178
parent9e8356c6adf119f983651d533d2b307544086cf9
parenta35aaa21080ddb3e3dc0a4778d4ced863b2815a7
Auto merge of #89219 - nickkuk:str_split_once_get_unchecked, r=Mark-Simulacrum

Use get_unchecked in str::[r]split_once

This PR removes indices checking in `str::split_once` and `str::rsplit_once` methods.
library/core/src/str/mod.rs