Skip to content

Commit 3a7918a

Browse files
Clean up rustdoc highlight.rs imports a bit
1 parent c27948d commit 3a7918a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/librustdoc/html/highlight.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,18 @@
77
88
use crate::clean::PrimitiveType;
99
use crate::html::escape::Escape;
10-
use crate::html::render::Context;
10+
use crate::html::render::{Context, LinkFromSrc};
1111

1212
use std::collections::VecDeque;
1313
use std::fmt::{Display, Write};
1414

1515
use rustc_data_structures::fx::FxHashMap;
16-
use rustc_lexer::Cursor;
17-
use rustc_lexer::{LiteralKind, TokenKind};
16+
use rustc_lexer::{Cursor, LiteralKind, TokenKind};
1817
use rustc_span::edition::Edition;
1918
use rustc_span::symbol::Symbol;
2019
use rustc_span::{BytePos, Span, DUMMY_SP};
2120

2221
use super::format::{self, Buffer};
23-
use super::render::LinkFromSrc;
2422

2523
/// This type is needed in case we want to render links on items to allow to go to their definition.
2624
pub(crate) struct HrefContext<'a, 'b, 'c> {

0 commit comments

Comments
 (0)