lint: port while true diagnostics
Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
4f7b10f484
commit
588977b350
2 changed files with 6 additions and 4 deletions
|
@ -286,3 +286,6 @@ lint-unused-import-braces = braces around {$node} is unnecessary
|
|||
|
||||
lint-unused-allocation = unnecessary allocation, use `&` instead
|
||||
lint-unused-allocation-mut = unnecessary allocation, use `&mut` instead
|
||||
|
||||
lint-builtin-while-true = denote infinite loops with `loop {"{"} ... {"}"}`
|
||||
.suggestion = use `loop`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue