mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-27 04:55:57 +00:00
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:
parent
2aee21e507
commit
0b61a75afc
1 changed files with 1 additions and 0 deletions
|
@ -245,6 +245,7 @@ range_plus_one = "deny"
|
||||||
redundant_closure_for_method_calls = "deny"
|
redundant_closure_for_method_calls = "deny"
|
||||||
redundant_else = "deny"
|
redundant_else = "deny"
|
||||||
string_add_assign = "deny"
|
string_add_assign = "deny"
|
||||||
|
string_slice = "deny"
|
||||||
unchecked_duration_subtraction = "deny"
|
unchecked_duration_subtraction = "deny"
|
||||||
uninlined_format_args = "deny"
|
uninlined_format_args = "deny"
|
||||||
unnecessary_box_returns = "deny"
|
unnecessary_box_returns = "deny"
|
||||||
|
|
Loading…
Reference in a new issue