Skip to content

Commit c4d4869

Browse files
committed
remove debug eprintln!
1 parent b7bbfc2 commit c4d4869

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/ra_ide/src/link_rewrite.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@ fn try_resolve_intra(
159159
link_text: &str,
160160
link_target: &str,
161161
) -> Option<(String, String)> {
162-
eprintln!("resolving intra");
163-
164162
// Set link_target for implied shortlinks
165163
let link_target =
166164
if link_target.is_empty() { link_text.trim_matches('`') } else { link_target };
@@ -175,7 +173,7 @@ fn try_resolve_intra(
175173
let path = Path::parse(link_target).ok()?;
176174
let modpath = ModPath::from_src(path, &Hygiene::new_unhygienic()).unwrap();
177175

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)
179177
let resolver = definition.resolver(db)?;
180178

181179
let resolved = resolver.resolve_module_path_in_items(db, &modpath);
@@ -219,8 +217,6 @@ fn try_resolve_intra(
219217

220218
/// Try to resolve path to local documentation via path-based links (i.e. `../gateway/struct.Shard.html`).
221219
fn try_resolve_path(db: &RootDatabase, definition: &Definition, link: &str) -> Option<String> {
222-
eprintln!("resolving path");
223-
224220
if !link.contains("#") && !link.contains(".html") {
225221
return None;
226222
}

0 commit comments

Comments
 (0)