File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -282,8 +282,8 @@ impl TestDB {
282282 base_db:: EditionedFileId :: new ( db. as_dyn_database ( ) , position. file_id ) ;
283283
284284 let root_syntax_node = db. parse ( editioned_file_id_wrapper) . syntax_node ( ) ;
285- let scope_iter = algo :: ancestors_at_offset ( & root_syntax_node , position . offset )
286- . filter_map ( |node| {
285+ let scope_iter =
286+ algo :: ancestors_at_offset ( & root_syntax_node , position . offset ) . filter_map ( |node| {
287287 let block = ast:: BlockExpr :: cast ( node) ?;
288288 let expr = ast:: Expr :: from ( block) ;
289289 let expr_id = source_map
Original file line number Diff line number Diff line change @@ -157,7 +157,10 @@ fn highlight_references(
157157 match resolution. map ( Definition :: from) {
158158 Some ( def) => iter:: once ( def) . collect ( ) ,
159159 None => {
160- return Some ( vec ! [ HighlightedRange { range, category: ReferenceCategory :: empty( ) } ] ) ;
160+ return Some ( vec ! [ HighlightedRange {
161+ range,
162+ category: ReferenceCategory :: empty( ) ,
163+ } ] ) ;
161164 }
162165 }
163166 } else {
You can’t perform that action at this time.
0 commit comments