mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
rename stray id field
This commit is contained in:
parent
5abcca516d
commit
4ac338b608
2 changed files with 2 additions and 2 deletions
|
@ -875,7 +875,7 @@ fn highlight(world: &ServerWorld, file_id: FileId) -> Result<Vec<Decoration>> {
|
|||
.map(|h| Decoration {
|
||||
range: h.range.conv_with(&line_index),
|
||||
tag: h.tag,
|
||||
id: h.binding_hash.map(|x| x.to_string()),
|
||||
binding_hash: h.binding_hash.map(|x| x.to_string()),
|
||||
})
|
||||
.collect();
|
||||
Ok(res)
|
||||
|
|
|
@ -129,7 +129,7 @@ pub struct PublishDecorationsParams {
|
|||
pub struct Decoration {
|
||||
pub range: Range,
|
||||
pub tag: &'static str,
|
||||
pub id: Option<String>,
|
||||
pub binding_hash: Option<String>,
|
||||
}
|
||||
|
||||
pub enum ParentModule {}
|
||||
|
|
Loading…
Reference in a new issue