aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorMikhail Rakhmanov <[email protected]>2020-06-12 12:14:53 +0100
committerMikhail Rakhmanov <[email protected]>2020-06-12 12:14:53 +0100
commit42a719ad255c62933f58c2b2a5e767fb3b3c5a26 (patch)
treec6958dc5f46f94bc629e931f5d15c6866cd47e7e /crates
parentd38bf1624d335651dc297fdd92672cdb0ee2ef4f (diff)
Remove comment and incorrect assert
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_ide/src/completion/complete_keyword.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/crates/ra_ide/src/completion/complete_keyword.rs b/crates/ra_ide/src/completion/complete_keyword.rs
index feaa438af..8ea51c7aa 100644
--- a/crates/ra_ide/src/completion/complete_keyword.rs
+++ b/crates/ra_ide/src/completion/complete_keyword.rs
@@ -130,7 +130,7 @@ mod tests {
130 let mut returned_keywords = Vec::<(String, String)>::new(); 130 let mut returned_keywords = Vec::<(String, String)>::new();
131 131
132 for item in completion_items { 132 for item in completion_items {
133 debug_assert!(item.text_edit().len() == 1); 133 assert!(item.text_edit().len() == 1);
134 assert!(item.kind() == Some(CompletionItemKind::Keyword)); 134 assert!(item.kind() == Some(CompletionItemKind::Keyword));
135 let atom = item.text_edit().iter().next().unwrap().clone(); 135 let atom = item.text_edit().iter().next().unwrap().clone();
136 assert!(atom.delete.start() == position.offset); 136 assert!(atom.delete.start() == position.offset);
@@ -165,12 +165,6 @@ mod tests {
165 ] 165 ]
166 "### 166 "###
167 ); 167 );
168 // assert_completion_keyword(
169 // r"
170 // use <|>
171 // ",
172 // &[("crate", "crate::"), ("self", "self"), ("super", "super::")],
173 // );
174 } 168 }
175 169
176 #[test] 170 #[test]