about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-23 11:36:53 +0000
committerbors <bors@rust-lang.org>2023-12-23 11:36:53 +0000
commit858d96d63a9bf11037eef2e252be5c4bc3570bec (patch)
tree107e254eafcc798a5101e9a2156cd678571e2977 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent2ddcfb8531a4ea55bf06ed1c8bd080e729617615 (diff)
parent238c5f9f2781c177c1be5e26285e586de6a762e1 (diff)
downloadrust-858d96d63a9bf11037eef2e252be5c4bc3570bec.tar.gz
rust-858d96d63a9bf11037eef2e252be5c4bc3570bec.zip
Auto merge of #11871 - GuillaumeGomez:UNNECESSARY_TO_OWNED-split, r=llogiq
Extend `UNNECESSARY_TO_OWNED` to handle `split`

Fixes https://github.com/rust-lang/rust-clippy/issues/9965.

When you have `to_string().split('a')` or equivalent, it'll suggest to remove the `to_owned`/`to_string` part.

r? `@flip1995`

changelog: Extend `UNNECESSARY_TO_OWNED` to handle `split`
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions