]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #76828 - matthiaskrgr:clippy_manual_strip, r=lcnr
authorRalf Jung <post@ralfj.de>
Sun, 20 Sep 2020 10:08:29 +0000 (12:08 +0200)
committerGitHub <noreply@github.com>
Sun, 20 Sep 2020 10:08:29 +0000 (12:08 +0200)
commitbfa1904765407e8064beb81c75b4bba039437043
tree9c6a15af83650cb50f55ae245f18b1e745022c64
parentc124d4363d3b3eb76b4aee36c8a7386b34a2a996
parent012974da7ad3737b296af4a401dfed2e8dcc22df
Rollup merge of #76828 - matthiaskrgr:clippy_manual_strip, r=lcnr

use strip_prefix over starts_with and manual slicing based on pattern length (clippy::manual_strip)
compiler/rustc_typeck/src/collect.rs