about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorllogiq <bogusandre@gmail.com>2025-01-09 22:33:26 +0000
committerGitHub <noreply@github.com>2025-01-09 22:33:26 +0000
commit197d58d59171acd4a903f04ce1a4be7e299b3b46 (patch)
tree4fc2c4760f9fa89e8aa87093f3db68227f7c2fda /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent19e305bb57a7595f2a8d81f521c0dd8bf854e739 (diff)
parentd5264c7a4641abdfc8fd36d3e870d9ba49345180 (diff)
downloadrust-197d58d59171acd4a903f04ce1a4be7e299b3b46.tar.gz
rust-197d58d59171acd4a903f04ce1a4be7e299b3b46.zip
Improve `needless_as_bytes` to also detect `str::bytes()` (#13972)
I ran Clippy on some projects after upgrading to 1.84, which found a
[needless use of
`as_bytes()`](https://github.com/rust-lang/rust-clippy/pull/13437). It
made me notice that the code was also using `bytes()` needlessly in
other places. This PR improves on the `as_bytes()` lint to also lint
`bytes()`.

----

changelog: none
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions