cargo fmt
This commit is contained in:
parent
dac0032613
commit
52e6c2602b
2 changed files with 6 additions and 3 deletions
|
|
@ -282,8 +282,8 @@ impl TestDB {
|
|||
base_db::EditionedFileId::new(db.as_dyn_database(), position.file_id);
|
||||
|
||||
let root_syntax_node = db.parse(editioned_file_id_wrapper).syntax_node();
|
||||
let scope_iter = algo::ancestors_at_offset(&root_syntax_node, position.offset)
|
||||
.filter_map(|node| {
|
||||
let scope_iter =
|
||||
algo::ancestors_at_offset(&root_syntax_node, position.offset).filter_map(|node| {
|
||||
let block = ast::BlockExpr::cast(node)?;
|
||||
let expr = ast::Expr::from(block);
|
||||
let expr_id = source_map
|
||||
|
|
|
|||
|
|
@ -157,7 +157,10 @@ fn highlight_references(
|
|||
match resolution.map(Definition::from) {
|
||||
Some(def) => iter::once(def).collect(),
|
||||
None => {
|
||||
return Some(vec![HighlightedRange { range, category: ReferenceCategory::empty() }]);
|
||||
return Some(vec![HighlightedRange {
|
||||
range,
|
||||
category: ReferenceCategory::empty(),
|
||||
}]);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue