diff options
| author | Smitty <me@smitop.com> | 2021-04-20 18:53:15 -0400 |
|---|---|---|
| committer | Smitty <me@smitop.com> | 2021-04-20 18:53:15 -0400 |
| commit | 7cf4f4276f691b3052df64930a9f02e33e2783df (patch) | |
| tree | 1b28b818407db569095f8d38cfcdd5a29d6ffa78 /src | |
| parent | 0c193f82e7525cba88d67320fc3d706683a9cb9b (diff) | |
| download | rust-7cf4f4276f691b3052df64930a9f02e33e2783df.tar.gz rust-7cf4f4276f691b3052df64930a9f02e33e2783df.zip | |
Rename pushname to is_module
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/html/render/context.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/html/render/context.rs b/src/librustdoc/html/render/context.rs index 3fcf972a5b8..397e03afae6 100644 --- a/src/librustdoc/html/render/context.rs +++ b/src/librustdoc/html/render/context.rs @@ -167,13 +167,13 @@ impl<'tcx> Context<'tcx> { "../".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(); - if pushname { + if is_module { title.push_str(&it.name.unwrap().as_str()); } if !it.is_primitive() && !it.is_keyword() { - if pushname { + if is_module { title.push_str(" in "); } // No need to include the namespace for primitive types and keywords |
