From 9df848c58079a710869dcde2692466cc4b0ac78e Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Thu, 17 Jun 2021 15:10:25 +0200 Subject: Less filtering in completion tests --- crates/ide_completion/src/completions/attribute/derive.rs | 7 ++----- crates/ide_completion/src/completions/attribute/lint.rs | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'crates/ide_completion/src/completions/attribute') diff --git a/crates/ide_completion/src/completions/attribute/derive.rs b/crates/ide_completion/src/completions/attribute/derive.rs index 5201095e8..6fe41e0d6 100644 --- a/crates/ide_completion/src/completions/attribute/derive.rs +++ b/crates/ide_completion/src/completions/attribute/derive.rs @@ -82,7 +82,7 @@ const DEFAULT_DERIVE_COMPLETIONS: &[DeriveDependencies] = &[ mod tests { use expect_test::{expect, Expect}; - use crate::{tests::filtered_completion_list, CompletionKind}; + use crate::tests::completion_list; fn check(ra_fixture: &str, expect: Expect) { let builtin_derives = r#" @@ -106,10 +106,7 @@ pub macro PartialOrd {} pub macro Ord {} "#; - let actual = filtered_completion_list( - &format!("{} {}", builtin_derives, ra_fixture), - CompletionKind::Attribute, - ); + let actual = completion_list(&format!("{} {}", builtin_derives, ra_fixture)); expect.assert_eq(&actual); } diff --git a/crates/ide_completion/src/completions/attribute/lint.rs b/crates/ide_completion/src/completions/attribute/lint.rs index 4812b075c..1ddc38986 100644 --- a/crates/ide_completion/src/completions/attribute/lint.rs +++ b/crates/ide_completion/src/completions/attribute/lint.rs @@ -33,7 +33,6 @@ pub(super) fn complete_lint( #[cfg(test)] mod tests { - use crate::tests::check_edit; #[test] -- cgit v1.2.3