From e0c1ab650ecd4ebdb7fcc22383ec73412728f841 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 13 Jun 2024 18:21:52 -0400 Subject: [PATCH] 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 --- crates/rustdoc/src/indexer.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/rustdoc/src/indexer.rs b/crates/rustdoc/src/indexer.rs index f56b2eda1a..ff4eee030e 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;