Move ExternalLocation to clean::types

It was previously defined in `render::search_index` but wasn't used at
all there. `clean::types` seems like a better fit since that's where
`ExternalCrate` is defined.
This commit is contained in:
Noah Lev
2021-12-27 18:57:07 -08:00
parent e19593f0e5
commit 2b801dcdd3
6 changed files with 19 additions and 19 deletions

View File

@@ -14,7 +14,7 @@ use rustc_span::source_map::FileName;
use rustc_span::symbol::sym;
use super::print_item::{full_path, item_path, print_item};
use super::search_index::{build_index, ExternalLocation};
use super::search_index::build_index;
use super::templates;
use super::write_shared::write_shared;
use super::{
@@ -22,7 +22,7 @@ use super::{
BASIC_KEYWORDS,
};
use crate::clean::{self, ExternalCrate};
use crate::clean::{self, types::ExternalLocation, ExternalCrate};
use crate::config::RenderOptions;
use crate::docfs::{DocFS, PathError};
use crate::error::Error;