diff options
author | Zac Pullar-Strecker <[email protected]> | 2020-08-31 09:38:10 +0100 |
---|---|---|
committer | Zac Pullar-Strecker <[email protected]> | 2020-10-08 03:01:30 +0100 |
commit | 8c32bdea3662f4c65810e2d92569b0cb4e3872d9 (patch) | |
tree | e5f5fec86a7c766eefd3a34501ef944bd2088651 | |
parent | a06d736b77770e4c1e738086c81b4fd60fcfcb23 (diff) |
Rename ide::link_rewrite -> ide::doc_links & tidy imports
-rw-r--r-- | crates/ide/src/doc_links.rs (renamed from crates/ide/src/link_rewrite.rs) | 0 | ||||
-rw-r--r-- | crates/ide/src/hover.rs | 2 | ||||
-rw-r--r-- | crates/ide/src/lib.rs | 6 |
3 files changed, 4 insertions, 4 deletions
diff --git a/crates/ide/src/link_rewrite.rs b/crates/ide/src/doc_links.rs index 1e102997f..1e102997f 100644 --- a/crates/ide/src/link_rewrite.rs +++ b/crates/ide/src/doc_links.rs | |||
diff --git a/crates/ide/src/hover.rs b/crates/ide/src/hover.rs index 53265488e..a53359d03 100644 --- a/crates/ide/src/hover.rs +++ b/crates/ide/src/hover.rs | |||
@@ -14,8 +14,8 @@ use test_utils::mark; | |||
14 | 14 | ||
15 | use crate::{ | 15 | use crate::{ |
16 | display::{macro_label, ShortLabel, ToNav, TryToNav}, | 16 | display::{macro_label, ShortLabel, ToNav, TryToNav}, |
17 | link_rewrite::{remove_links, rewrite_links}, | ||
18 | markdown_remove::remove_markdown, | 17 | markdown_remove::remove_markdown, |
18 | doc_links::{remove_links, rewrite_links}, | ||
19 | markup::Markup, | 19 | markup::Markup, |
20 | runnables::runnable, | 20 | runnables::runnable, |
21 | FileId, FilePosition, NavigationTarget, RangeInfo, Runnable, | 21 | FileId, FilePosition, NavigationTarget, RangeInfo, Runnable, |
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs index 645369597..b92e6d9ea 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs | |||
@@ -45,8 +45,8 @@ mod status; | |||
45 | mod syntax_highlighting; | 45 | mod syntax_highlighting; |
46 | mod syntax_tree; | 46 | mod syntax_tree; |
47 | mod typing; | 47 | mod typing; |
48 | mod link_rewrite; | ||
49 | mod markdown_remove; | 48 | mod markdown_remove; |
49 | mod doc_links; | ||
50 | 50 | ||
51 | use std::sync::Arc; | 51 | use std::sync::Arc; |
52 | 52 | ||
@@ -386,8 +386,8 @@ impl Analysis { | |||
386 | pub fn get_doc_url( | 386 | pub fn get_doc_url( |
387 | &self, | 387 | &self, |
388 | position: FilePosition, | 388 | position: FilePosition, |
389 | ) -> Cancelable<Option<link_rewrite::DocumentationLink>> { | 389 | ) -> Cancelable<Option<doc_links::DocumentationLink>> { |
390 | self.with_db(|db| link_rewrite::get_doc_url(db, &position)) | 390 | self.with_db(|db| doc_links::get_doc_url(db, &position)) |
391 | } | 391 | } |
392 | 392 | ||
393 | /// Computes parameter information for the given call expression. | 393 | /// Computes parameter information for the given call expression. |