aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide
diff options
context:
space:
mode:
authorZac Pullar-Strecker <[email protected]>2020-08-01 08:11:43 +0100
committerZac Pullar-Strecker <[email protected]>2020-08-01 08:11:43 +0100
commitc4d4869f23dbe481c42a8fb24d2bc43e36b88933 (patch)
treedaa632a8bde62855c1063ba6c4db387806c1bcd7 /crates/ra_ide
parentb7bbfc2543af326783cce7d6975efb809766a534 (diff)
remove debug eprintln!
Diffstat (limited to 'crates/ra_ide')
-rw-r--r--crates/ra_ide/src/link_rewrite.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/ra_ide/src/link_rewrite.rs b/crates/ra_ide/src/link_rewrite.rs
index 85e6188e8..1065eb619 100644
--- a/crates/ra_ide/src/link_rewrite.rs
+++ b/crates/ra_ide/src/link_rewrite.rs
@@ -159,8 +159,6 @@ fn try_resolve_intra(
159 link_text: &str, 159 link_text: &str,
160 link_target: &str, 160 link_target: &str,
161) -> Option<(String, String)> { 161) -> Option<(String, String)> {
162 eprintln!("resolving intra");
163
164 // Set link_target for implied shortlinks 162 // Set link_target for implied shortlinks
165 let link_target = 163 let link_target =
166 if link_target.is_empty() { link_text.trim_matches('`') } else { link_target }; 164 if link_target.is_empty() { link_text.trim_matches('`') } else { link_target };
@@ -175,7 +173,7 @@ fn try_resolve_intra(
175 let path = Path::parse(link_target).ok()?; 173 let path = Path::parse(link_target).ok()?;
176 let modpath = ModPath::from_src(path, &Hygiene::new_unhygienic()).unwrap(); 174 let modpath = ModPath::from_src(path, &Hygiene::new_unhygienic()).unwrap();
177 175
178 // Resolve it relative to symbol's location (according to the RFC this should consider small scopes 176 // Resolve it relative to symbol's location (according to the RFC this should consider small scopes)
179 let resolver = definition.resolver(db)?; 177 let resolver = definition.resolver(db)?;
180 178
181 let resolved = resolver.resolve_module_path_in_items(db, &modpath); 179 let resolved = resolver.resolve_module_path_in_items(db, &modpath);
@@ -219,8 +217,6 @@ fn try_resolve_intra(
219 217
220/// Try to resolve path to local documentation via path-based links (i.e. `../gateway/struct.Shard.html`). 218/// Try to resolve path to local documentation via path-based links (i.e. `../gateway/struct.Shard.html`).
221fn try_resolve_path(db: &RootDatabase, definition: &Definition, link: &str) -> Option<String> { 219fn try_resolve_path(db: &RootDatabase, definition: &Definition, link: &str) -> Option<String> {
222 eprintln!("resolving path");
223
224 if !link.contains("#") && !link.contains(".html") { 220 if !link.contains("#") && !link.contains(".html") {
225 return None; 221 return None;
226 } 222 }