diff options
| author | llogiq <bogusandre@gmail.com> | 2025-01-09 22:33:26 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-09 22:33:26 +0000 |
| commit | 197d58d59171acd4a903f04ce1a4be7e299b3b46 (patch) | |
| tree | 4fc2c4760f9fa89e8aa87093f3db68227f7c2fda /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 19e305bb57a7595f2a8d81f521c0dd8bf854e739 (diff) | |
| parent | d5264c7a4641abdfc8fd36d3e870d9ba49345180 (diff) | |
| download | rust-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
