mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Rename ide::link_rewrite -> ide::doc_links & tidy imports
This commit is contained in:
parent
a06d736b77
commit
8c32bdea36
3 changed files with 4 additions and 4 deletions
|
@ -14,8 +14,8 @@ use test_utils::mark;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
display::{macro_label, ShortLabel, ToNav, TryToNav},
|
display::{macro_label, ShortLabel, ToNav, TryToNav},
|
||||||
link_rewrite::{remove_links, rewrite_links},
|
|
||||||
markdown_remove::remove_markdown,
|
markdown_remove::remove_markdown,
|
||||||
|
doc_links::{remove_links, rewrite_links},
|
||||||
markup::Markup,
|
markup::Markup,
|
||||||
runnables::runnable,
|
runnables::runnable,
|
||||||
FileId, FilePosition, NavigationTarget, RangeInfo, Runnable,
|
FileId, FilePosition, NavigationTarget, RangeInfo, Runnable,
|
||||||
|
|
|
@ -45,8 +45,8 @@ mod status;
|
||||||
mod syntax_highlighting;
|
mod syntax_highlighting;
|
||||||
mod syntax_tree;
|
mod syntax_tree;
|
||||||
mod typing;
|
mod typing;
|
||||||
mod link_rewrite;
|
|
||||||
mod markdown_remove;
|
mod markdown_remove;
|
||||||
|
mod doc_links;
|
||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
@ -386,8 +386,8 @@ impl Analysis {
|
||||||
pub fn get_doc_url(
|
pub fn get_doc_url(
|
||||||
&self,
|
&self,
|
||||||
position: FilePosition,
|
position: FilePosition,
|
||||||
) -> Cancelable<Option<link_rewrite::DocumentationLink>> {
|
) -> Cancelable<Option<doc_links::DocumentationLink>> {
|
||||||
self.with_db(|db| link_rewrite::get_doc_url(db, &position))
|
self.with_db(|db| doc_links::get_doc_url(db, &position))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Computes parameter information for the given call expression.
|
/// Computes parameter information for the given call expression.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue