@@ -14,7 +14,7 @@ use lsp_types::{
1414 CodeAction , CodeActionResponse , CodeLens , Command , CompletionItem , Diagnostic ,
1515 DocumentFormattingParams , DocumentHighlight , DocumentSymbol , FoldingRange , FoldingRangeParams ,
1616 Hover , HoverContents , Location , MarkupContent , MarkupKind , Position , PrepareRenameResponse ,
17- Range , RenameParams , SemanticTokens , SemanticTokensParams , SemanticTokensRangeParams ,
17+ Range , RenameParams , SemanticTokensParams , SemanticTokensRangeParams ,
1818 SemanticTokensRangeResult , SemanticTokensResult , SymbolInformation , TextDocumentIdentifier ,
1919 TextEdit , WorkspaceEdit ,
2020} ;
@@ -1145,7 +1145,7 @@ pub fn handle_semantic_tokens(
11451145 }
11461146 }
11471147
1148- let tokens = SemanticTokens { data : builder. build ( ) , .. Default :: default ( ) } ;
1148+ let tokens = builder. build ( ) ;
11491149
11501150 Ok ( Some ( tokens. into ( ) ) )
11511151}
@@ -1166,7 +1166,7 @@ pub fn handle_semantic_tokens_range(
11661166 builder. push ( highlight_range. range . conv_with ( & line_index) , token_type, token_modifiers) ;
11671167 }
11681168
1169- let tokens = SemanticTokens { data : builder. build ( ) , .. Default :: default ( ) } ;
1169+ let tokens = builder. build ( ) ;
11701170
11711171 Ok ( Some ( tokens. into ( ) ) )
11721172}
0 commit comments