mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
restructure a bit
This commit is contained in:
parent
0dd08b8023
commit
d26d0ada50
11 changed files with 869 additions and 699 deletions
|
@ -481,7 +481,7 @@ pub fn handle_references(
|
|||
params: req::ReferenceParams,
|
||||
) -> Result<Option<Vec<Location>>> {
|
||||
let position = params.text_document_position.try_conv_with(&world)?;
|
||||
|
||||
|
||||
let refs = match world.analysis().find_all_refs(position)? {
|
||||
None => return Ok(None),
|
||||
Some(refs) => refs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue