File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -217,8 +217,8 @@ fn highlight_yield_points(token: SyntaxToken) -> Option<Vec<HighlightedRange>> {
217
217
async_token : Option < SyntaxToken > ,
218
218
body : Option < ast:: Expr > ,
219
219
) -> Option < Vec < HighlightedRange > > {
220
- let mut highlights = Vec :: new ( ) ;
221
- highlights . push ( HighlightedRange { access : None , range : async_token?. text_range ( ) } ) ;
220
+ let mut highlights =
221
+ vec ! [ HighlightedRange { access: None , range: async_token?. text_range( ) } ] ;
222
222
if let Some ( body) = body {
223
223
body. walk ( & mut |expr| {
224
224
if let ast:: Expr :: AwaitExpr ( expr) = expr {
Original file line number Diff line number Diff line change @@ -769,8 +769,8 @@ pub(crate) fn handle_completion(
769
769
snap. config . insert_replace_support ( ) ,
770
770
completion_config. enable_imports_on_the_fly ,
771
771
& line_index,
772
- text_document_position. clone ( ) ,
773
- items. clone ( ) ,
772
+ text_document_position,
773
+ items,
774
774
) ;
775
775
776
776
let completion_list = lsp_types:: CompletionList { is_incomplete : true , items } ;
You can’t perform that action at this time.
0 commit comments