Skip to content

Commit

Permalink
Merge pull request #30 from Robzz/fix/issue29
Browse files Browse the repository at this point in the history
Fix modules names being suffixed by '::index'
  • Loading branch information
Robzz committed Apr 29, 2021
2 parents 69de068 + 3734f7a commit 3e2c9b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ fn parse_docset_entry<P1: AsRef<Path>, P2: AsRef<Path>>(
if mod_path.contains(':') {
// Module entry
Some(DocsetEntry::new(
format!("{}::{}", mod_path, parts[0]),
mod_path.to_string(),
EntryType::Module,
file_db_path
))
} else {
// Package entry
Some(DocsetEntry::new(
(*mod_path).to_string(),
mod_path.to_string(),
EntryType::Package,
file_db_path
))
Expand Down

0 comments on commit 3e2c9b3

Please sign in to comment.