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 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'crates/ide_completion/src/completions/attribute/derive.rs') 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); } -- cgit v1.2.3