@@ -108,7 +108,7 @@ pub fn generate_docs_html(root_file: PathBuf, build_dir: &Path) {
108
108
exposed_module_docs
109
109
. iter ( )
110
110
. map ( |( _, module) | {
111
- let module_href = module. name . replace ( "." , "/" ) ;
111
+ let module_href = module. name . replace ( '.' , "/" ) ;
112
112
let href = module_href. as_str ( ) ;
113
113
114
114
format ! ( r#"<link rel="prefetch" href="{href}"/>"# )
@@ -238,7 +238,7 @@ fn render_package_index(docs_by_module: &[(ModuleId, ModuleDocumentation)]) -> S
238
238
push_html (
239
239
& mut link_buf,
240
240
"a" ,
241
- [ ( "href" , module. name . replace ( "." , "/" ) . as_str ( ) ) ] ,
241
+ [ ( "href" , module. name . replace ( '.' , "/" ) . as_str ( ) ) ] ,
242
242
module. name . as_str ( ) ,
243
243
) ;
244
244
@@ -463,7 +463,7 @@ fn render_sidebar<'a, I: Iterator<Item = &'a ModuleDocumentation>>(modules: I) -
463
463
let mut buf = String :: new ( ) ;
464
464
465
465
for module in modules {
466
- let module_href = module. name . replace ( "." , "/" ) ;
466
+ let module_href = module. name . replace ( '.' , "/" ) ;
467
467
let href = module_href. as_str ( ) ;
468
468
let mut sidebar_entry_content = String :: new ( ) ;
469
469
let mut module_link_content = String :: new ( ) ;
@@ -575,7 +575,7 @@ fn render_search_type_ahead<'a, I: Iterator<Item = &'a ModuleDocumentation>>(mod
575
575
576
576
let mut entry_href = String :: new ( ) ;
577
577
578
- entry_href. push_str ( & module_name. replace ( "." , "/" ) ) ;
578
+ entry_href. push_str ( & module_name. replace ( '.' , "/" ) ) ;
579
579
entry_href. push ( '#' ) ;
580
580
entry_href. push_str ( & doc_def. name ) ;
581
581
0 commit comments