mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Strip clippy::
prefix from search strings
This commit is contained in:
parent
91644d1f1d
commit
0fd03a85de
1 changed files with 3 additions and 0 deletions
|
@ -232,6 +232,9 @@
|
|||
return true;
|
||||
}
|
||||
searchStr = searchStr.toLowerCase();
|
||||
if (searchStr.startsWith("clippy::")) {
|
||||
searchStr = searchStr.slice(8);
|
||||
}
|
||||
|
||||
// Search by id
|
||||
if (lint.id.indexOf(searchStr.replace("-", "_")) !== -1) {
|
||||
|
|
Loading…
Reference in a new issue