rust-clippy icon indicating copy to clipboard operation
rust-clippy copied to clipboard

Add new lint for byte char slices

Open TheNeikos opened this issue 1 year ago • 7 comments

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

TheNeikos avatar Jan 04 '23 08:01 TheNeikos