Add lint against string slicing

These are tricky as it panics if the slice doesn't hit a UTF-8 codepoint
boundary.
This commit is contained in:
Luke Parker 2024-10-02 21:58:45 -04:00
parent 2aee21e507
commit 0b61a75afc
No known key found for this signature in database

View file

@ -245,6 +245,7 @@ range_plus_one = "deny"
redundant_closure_for_method_calls = "deny"
redundant_else = "deny"
string_add_assign = "deny"
string_slice = "deny"
unchecked_duration_subtraction = "deny"
uninlined_format_args = "deny"
unnecessary_box_returns = "deny"