rust-clippy
rust-clippy copied to clipboard
Add new lint for byte char slices
This patch adds a new lint that checks for potentially harder to read byte char slices: &[b'a', b'b']
and suggests to replace them with the easier to read b"ab"
form.
Fixes #10147
changelog: new lint: [byte_char_slice
]
#10155