rustdoc: get rid of CURRENT_DEPTH
This commit is contained in:
parent
755b4fb02b
commit
18fbd3692f
3 changed files with 44 additions and 52 deletions
|
@ -35,7 +35,6 @@ mod write_shared;
|
|||
crate use context::*;
|
||||
crate use write_shared::FILES_UNVERSIONED;
|
||||
|
||||
use std::cell::Cell;
|
||||
use std::collections::VecDeque;
|
||||
use std::default::Default;
|
||||
use std::fmt;
|
||||
|
@ -209,8 +208,6 @@ crate struct StylePath {
|
|||
crate disabled: bool,
|
||||
}
|
||||
|
||||
thread_local!(crate static CURRENT_DEPTH: Cell<usize> = Cell::new(0));
|
||||
|
||||
fn write_srclink(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer) {
|
||||
if let Some(l) = cx.src_href(item) {
|
||||
write!(buf, "<a class=\"srclink\" href=\"{}\" title=\"goto source code\">[src]</a>", l)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue