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:
Marshall Bowers 2024-06-13 18:21:52 -04:00 committed by GitHub
parent 407188f816
commit e0c1ab650e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;