about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-10-08 18:15:02 -0700
committerGitHub <noreply@github.com>2022-10-08 18:15:02 -0700
commit16a1eeacbf3f9ebf044708da46fe4db339e3b96c (patch)
treec25c0bbc85ee9ea8f41d31d412239ae034062d96
parentc58886d428e8ae2d5fb83caabe6f6fef87415bf9 (diff)
parent3a7918ad42cedc5ec3e65ea25e0e4c18bf6cfd52 (diff)
downloadrust-16a1eeacbf3f9ebf044708da46fe4db339e3b96c.tar.gz
rust-16a1eeacbf3f9ebf044708da46fe4db339e3b96c.zip
Rollup merge of #102818 - rust-lang:clean-up-highlight-impots, r=Urgau
Clean up rustdoc highlight.rs imports a bit

r? `@Dylan-DPC`
-rw-r--r--src/librustdoc/html/highlight.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/librustdoc/html/highlight.rs b/src/librustdoc/html/highlight.rs
index 78b98431b19..5e28204b21d 100644
--- a/src/librustdoc/html/highlight.rs
+++ b/src/librustdoc/html/highlight.rs
@@ -7,20 +7,18 @@
 
 use crate::clean::PrimitiveType;
 use crate::html::escape::Escape;
-use crate::html::render::Context;
+use crate::html::render::{Context, LinkFromSrc};
 
 use std::collections::VecDeque;
 use std::fmt::{Display, Write};
 
 use rustc_data_structures::fx::FxHashMap;
-use rustc_lexer::Cursor;
-use rustc_lexer::{LiteralKind, TokenKind};
+use rustc_lexer::{Cursor, LiteralKind, TokenKind};
 use rustc_span::edition::Edition;
 use rustc_span::symbol::Symbol;
 use rustc_span::{BytePos, Span, DUMMY_SP};
 
 use super::format::{self, Buffer};
-use super::render::LinkFromSrc;
 
 /// This type is needed in case we want to render links on items to allow to go to their definition.
 pub(crate) struct HrefContext<'a, 'b, 'c> {