From 6a7d1d4412cd1047f309605156ea9f6cd8f3d997 Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Wed, 15 Jul 2020 08:17:48 -0400 Subject: [PATCH] Invert condition --- crates/rust-analyzer/src/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rust-analyzer/src/handlers.rs b/crates/rust-analyzer/src/handlers.rs index 357d5f8caf..2b37d78252 100644 --- a/crates/rust-analyzer/src/handlers.rs +++ b/crates/rust-analyzer/src/handlers.rs @@ -749,7 +749,7 @@ fn handle_fixes( match ¶ms.context.only { Some(v) => { - if v.iter().any(|it| { + if !v.iter().any(|it| { it == &lsp_types::CodeActionKind::EMPTY || it == &lsp_types::CodeActionKind::QUICKFIX }) {