Rename ide::link_rewrite -> ide::doc_links & tidy imports

This commit is contained in:
Zac Pullar-Strecker 2020-08-31 20:38:10 +12:00
parent a06d736b77
commit 8c32bdea36
3 changed files with 4 additions and 4 deletions

View file

@ -14,8 +14,8 @@ use test_utils::mark;
use crate::{
display::{macro_label, ShortLabel, ToNav, TryToNav},
link_rewrite::{remove_links, rewrite_links},
markdown_remove::remove_markdown,
doc_links::{remove_links, rewrite_links},
markup::Markup,
runnables::runnable,
FileId, FilePosition, NavigationTarget, RangeInfo, Runnable,

View file

@ -45,8 +45,8 @@ mod status;
mod syntax_highlighting;
mod syntax_tree;
mod typing;
mod link_rewrite;
mod markdown_remove;
mod doc_links;
use std::sync::Arc;
@ -386,8 +386,8 @@ impl Analysis {
pub fn get_doc_url(
&self,
position: FilePosition,
) -> Cancelable<Option<link_rewrite::DocumentationLink>> {
self.with_db(|db| link_rewrite::get_doc_url(db, &position))
) -> Cancelable<Option<doc_links::DocumentationLink>> {
self.with_db(|db| doc_links::get_doc_url(db, &position))
}
/// Computes parameter information for the given call expression.