lint: port unused allocation diagnostics
Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
e24833869f
commit
4f7b10f484
2 changed files with 8 additions and 7 deletions
|
@ -283,3 +283,6 @@ lint-unused-delim = unnecessary {$delim} around {$item}
|
|||
.suggestion = remove these {$delim}
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue