mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
rustdoc: Fix duplicated item path (#13013)
This PR fixes a bug that was introduced in #13011 where the item path would get duplicated twice in the database key. Release Notes: - N/A
This commit is contained in:
parent
407188f816
commit
e0c1ab650e
@ -192,11 +192,7 @@ impl RustdocIndexer {
|
|||||||
let (markdown, referenced_items) = convert_rustdoc_to_markdown(result.as_bytes())?;
|
let (markdown, referenced_items) = convert_rustdoc_to_markdown(result.as_bytes())?;
|
||||||
|
|
||||||
self.database
|
self.database
|
||||||
.insert(
|
.insert(crate_name.clone(), Some(item), markdown)
|
||||||
format!("{crate_name}::{}", item.display()),
|
|
||||||
Some(item),
|
|
||||||
markdown,
|
|
||||||
)
|
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
let parent_item = item;
|
let parent_item = item;
|
||||||
|
Loading…
Reference in New Issue
Block a user