Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

rustdoc: Fix duplicated item path (#13013)

Marshall Bowerse0c1ab650ecd
diff --git a/crates/rustdoc/src/indexer.rs b/crates/rustdoc/src/indexer.rs
index f56b2eda1a9..ff4eee030e1 100644
--- a/crates/rustdoc/src/indexer.rs
+++ b/crates/rustdoc/src/indexer.rs
@@ -192,11 +192,7 @@ impl RustdocIndexer {
let (markdown, referenced_items) = convert_rustdoc_to_markdown(result.as_bytes())?;
self.database
- .insert(
- format!("{crate_name}::{}", item.display()),
- Some(item),
- markdown,
- )
+ .insert(crate_name.clone(), Some(item), markdown)
.await?;
let parent_item = item;