aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion/src/completions/attribute
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-06-17 14:10:25 +0100
committerLukas Wirth <[email protected]>2021-06-17 14:10:25 +0100
commit9df848c58079a710869dcde2692466cc4b0ac78e (patch)
tree7e2e2318fa0635d619ae310cb78bb220d9aaaad5 /crates/ide_completion/src/completions/attribute
parentc82a9141abe6b6cbf5b55710dc8a315a3839081b (diff)
Less filtering in completion tests
Diffstat (limited to 'crates/ide_completion/src/completions/attribute')
-rw-r--r--crates/ide_completion/src/completions/attribute/derive.rs7
-rw-r--r--crates/ide_completion/src/completions/attribute/lint.rs1
2 files changed, 2 insertions, 6 deletions
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] = &[
82mod tests { 82mod tests {
83 use expect_test::{expect, Expect}; 83 use expect_test::{expect, Expect};
84 84
85 use crate::{tests::filtered_completion_list, CompletionKind}; 85 use crate::tests::completion_list;
86 86
87 fn check(ra_fixture: &str, expect: Expect) { 87 fn check(ra_fixture: &str, expect: Expect) {
88 let builtin_derives = r#" 88 let builtin_derives = r#"
@@ -106,10 +106,7 @@ pub macro PartialOrd {}
106pub macro Ord {} 106pub macro Ord {}
107 107
108"#; 108"#;
109 let actual = filtered_completion_list( 109 let actual = completion_list(&format!("{} {}", builtin_derives, ra_fixture));
110 &format!("{} {}", builtin_derives, ra_fixture),
111 CompletionKind::Attribute,
112 );
113 expect.assert_eq(&actual); 110 expect.assert_eq(&actual);
114 } 111 }
115 112
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(
33 33
34#[cfg(test)] 34#[cfg(test)]
35mod tests { 35mod tests {
36
37 use crate::tests::check_edit; 36 use crate::tests::check_edit;
38 37
39 #[test] 38 #[test]