1
Fork 0

Rename pushname to is_module

This commit is contained in:
Smitty 2021-04-20 18:53:15 -04:00
parent 0c193f82e7
commit 7cf4f4276f

View file

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