]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #66735 - SOF3:feature/str_strip, r=KodrAus
authorMazdak Farrokhzad <twingoow@gmail.com>
Mon, 16 Dec 2019 04:23:33 +0000 (05:23 +0100)
committerGitHub <noreply@github.com>
Mon, 16 Dec 2019 04:23:33 +0000 (05:23 +0100)
commit1c12dc8cdf36b62e93ce74cecc15f13e57f281d3
tree8a9b3512eb4eb5d0ab30aef5d50ba757605737cc
parent84ef88975bff75fc82e6950c688b8d57a6c02bdb
parent6176051dd0605b77c304aa647f277f4b069763a9
Rollup merge of #66735 - SOF3:feature/str_strip, r=KodrAus

Add str::strip_prefix and str::strip_suffix

Introduces a counterpart for `Path::strip_prefix` on `str`.

This was also discussed in https://internals.rust-lang.org/t/pre-pr-path-strip-prefix-counterpart-in-str/11364/.
src/libcore/str/mod.rs