@@ -71,7 +71,7 @@ fn completion_item_hash(item: &CompletionItem, is_ref_completion: bool) -> [u8;
71
71
CompletionRelevanceTypeMatch ,
72
72
} ;
73
73
74
- hasher. update ( & [
74
+ hasher. update ( [
75
75
u8:: from ( relevance. exact_name_match ) ,
76
76
u8:: from ( relevance. is_local ) ,
77
77
u8:: from ( relevance. is_name_already_imported ) ,
@@ -86,7 +86,7 @@ fn completion_item_hash(item: &CompletionItem, is_ref_completion: bool) -> [u8;
86
86
hasher. update ( label) ;
87
87
}
88
88
if let Some ( trait_) = & relevance. trait_ {
89
- hasher. update ( & [ u8:: from ( trait_. is_op_method ) , u8:: from ( trait_. notable_trait ) ] ) ;
89
+ hasher. update ( [ u8:: from ( trait_. is_op_method ) , u8:: from ( trait_. notable_trait ) ] ) ;
90
90
}
91
91
if let Some ( postfix_match) = & relevance. postfix_match {
92
92
let label = match postfix_match {
@@ -96,7 +96,7 @@ fn completion_item_hash(item: &CompletionItem, is_ref_completion: bool) -> [u8;
96
96
hasher. update ( label) ;
97
97
}
98
98
if let Some ( function) = & relevance. function {
99
- hasher. update ( & [ u8:: from ( function. has_params ) , u8:: from ( function. has_self_param ) ] ) ;
99
+ hasher. update ( [ u8:: from ( function. has_params ) , u8:: from ( function. has_self_param ) ] ) ;
100
100
let label = match function. return_type {
101
101
CompletionRelevanceReturnType :: Other => "other" ,
102
102
CompletionRelevanceReturnType :: DirectConstructor => "direct_constructor" ,
@@ -108,7 +108,7 @@ fn completion_item_hash(item: &CompletionItem, is_ref_completion: bool) -> [u8;
108
108
}
109
109
110
110
let mut hasher = TentHasher :: new ( ) ;
111
- hasher. update ( & [
111
+ hasher. update ( [
112
112
u8:: from ( is_ref_completion) ,
113
113
u8:: from ( item. is_snippet ) ,
114
114
u8:: from ( item. deprecated ) ,
0 commit comments