Skip to content

Commit 29a7732

Browse files
Remove redundant import
1 parent ceca4a1 commit 29a7732

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/librustdoc/html/render.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,8 +1062,6 @@ themePicker.onblur = handleThemeButtonsBlur;
10621062
}
10631063

10641064
if cx.shared.include_sources {
1065-
use std::path::Component;
1066-
10671065
let mut hierarchy = Hierarchy::new(OsString::new());
10681066
for source in cx.shared.local_sources.iter()
10691067
.filter_map(|p| p.0.strip_prefix(&cx.shared.src_root)

src/librustdoc/test.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,7 @@ pub fn make_test(s: &str,
371371
// Uses libsyntax to parse the doctest and find if there's a main fn and the extern
372372
// crate already is included.
373373
let (already_has_main, already_has_extern_crate, found_macro) = crate::syntax::with_globals(|| {
374-
use crate::syntax::{ast, parse::{self, ParseSess}, source_map::FilePathMapping};
375-
use crate::syntax_pos::FileName;
374+
use crate::syntax::{parse::{self, ParseSess}, source_map::FilePathMapping};
376375
use errors::emitter::EmitterWriter;
377376
use errors::Handler;
378377

0 commit comments

Comments
 (0)