File tree 1 file changed +1
-6
lines changed
crates/ide-completion/src 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ mod type_pos;
23
23
mod use_tree;
24
24
mod visibility;
25
25
26
- use std:: mem;
27
-
28
26
use hir:: { db:: DefDatabase , PrefixKind , Semantics } ;
29
27
use ide_db:: {
30
28
base_db:: { fixture:: ChangeFixture , FileLoader , FilePosition } ,
@@ -107,12 +105,9 @@ fn completion_list_with_config(
107
105
) -> String {
108
106
// filter out all but one builtintype completion for smaller test outputs
109
107
let items = get_all_items ( config, ra_fixture, trigger_character) ;
110
- let mut bt_seen = false ;
111
108
let items = items
112
109
. into_iter ( )
113
- . filter ( |it| {
114
- it. kind ( ) != CompletionItemKind :: BuiltinType || !mem:: replace ( & mut bt_seen, true )
115
- } )
110
+ . filter ( |it| it. kind ( ) != CompletionItemKind :: BuiltinType || it. label ( ) == "u32" )
116
111
. filter ( |it| include_keywords || it. kind ( ) != CompletionItemKind :: Keyword )
117
112
. filter ( |it| include_keywords || it. kind ( ) != CompletionItemKind :: Snippet )
118
113
. sorted_by_key ( |it| ( it. kind ( ) , it. label ( ) . to_owned ( ) , it. detail ( ) . map ( ToOwned :: to_owned) ) )
You can’t perform that action at this time.
0 commit comments