mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-23 04:45:41 +00:00
fix(ide-assists): remove AssistKind::None
This was being used by a single assist, which qualifies under the "refactor" kind. The variant has been removed, and all usages updated accordingly. Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
This commit is contained in:
parent
c7845a6d70
commit
e02d76aa61
5 changed files with 5 additions and 15 deletions
|
|
@ -753,7 +753,7 @@ impl Analysis {
|
|||
frange: FileRange,
|
||||
) -> Cancellable<Vec<Assist>> {
|
||||
let include_fixes = match &assist_config.allowed {
|
||||
Some(it) => it.iter().any(|&it| it == AssistKind::None || it == AssistKind::QuickFix),
|
||||
Some(it) => it.iter().any(|&it| it == AssistKind::QuickFix),
|
||||
None => true,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue