Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
  • Loading branch information
Anton-4 committed May 15, 2023
1 parent 945e0bf commit dfc365b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions crates/docs/src/lib.rs
Expand Up @@ -133,8 +133,9 @@ pub fn generate_docs_html(root_file: PathBuf) {
set
};

// TODO fix: as is, this overrides an existing index.html
// Write index.html for package (/index.html)
{
/*{
let rendered_package = template_html
.replace(
"<!-- Page title -->",
Expand All @@ -155,7 +156,7 @@ pub fn generate_docs_html(root_file: PathBuf) {
error
)
});
}
}*/

// Write each package module's index.html file
for module_docs in loaded_module.docs_by_module.values() {
Expand Down Expand Up @@ -195,7 +196,8 @@ fn page_title(package_name: &str, module_name: &str) -> String {
format!("<title>{module_name} - {package_name}</title>")
}

fn render_package_index(root_module: &LoadedModule) -> String {
// TODO re-enable with let rendered_package = template_html...
/*fn render_package_index(root_module: &LoadedModule) -> String {
// The list items containing module links
let mut module_list_buf = String::new();
Expand Down Expand Up @@ -226,7 +228,7 @@ fn render_package_index(root_module: &LoadedModule) -> String {
);
index_buf
}
}*/

fn render_module_documentation(
module: &ModuleDocumentation,
Expand Down

0 comments on commit dfc365b

Please sign in to comment.