Skip to content

Commit fef3f5c

Browse files
Remove redundant import
1 parent 8919894 commit fef3f5c

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
@@ -1069,8 +1069,6 @@ themePicker.onblur = handleThemeButtonsBlur;
10691069
}
10701070

10711071
if cx.shared.include_sources {
1072-
use std::path::Component;
1073-
10741072
let mut hierarchy = Hierarchy::new(OsString::new());
10751073
for source in cx.shared.local_sources.iter()
10761074
.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)