Rename pushname to is_module
This commit is contained in:
parent
0c193f82e7
commit
7cf4f4276f
1 changed files with 3 additions and 3 deletions
|
@ -167,13 +167,13 @@ impl<'tcx> Context<'tcx> {
|
||||||
"../".repeat(self.current.len())
|
"../".repeat(self.current.len())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn render_item(&self, it: &clean::Item, pushname: bool) -> String {
|
fn render_item(&self, it: &clean::Item, is_module: bool) -> String {
|
||||||
let mut title = String::new();
|
let mut title = String::new();
|
||||||
if pushname {
|
if is_module {
|
||||||
title.push_str(&it.name.unwrap().as_str());
|
title.push_str(&it.name.unwrap().as_str());
|
||||||
}
|
}
|
||||||
if !it.is_primitive() && !it.is_keyword() {
|
if !it.is_primitive() && !it.is_keyword() {
|
||||||
if pushname {
|
if is_module {
|
||||||
title.push_str(" in ");
|
title.push_str(" in ");
|
||||||
}
|
}
|
||||||
// No need to include the namespace for primitive types and keywords
|
// No need to include the namespace for primitive types and keywords
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue