Skip to content

Commit 47afa4a

Browse files
committed
Bump misc deps
1 parent 74f1b21 commit 47afa4a

File tree

3 files changed

+49
-43
lines changed

3 files changed

+49
-43
lines changed

Cargo.lock

Lines changed: 45 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ide/src/doc_links.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ fn get_doc_link(db: &RootDatabase, definition: Definition) -> Option<String> {
286286
.and_then(
287287
|url| if let Some(fragment) = fragment { url.join(&fragment).ok() } else { Some(url) },
288288
)
289-
.map(|url| url.into_string())
289+
.map(|url| url.into())
290290
}
291291

292292
fn rewrite_intra_doc_link(
@@ -325,7 +325,7 @@ fn rewrite_intra_doc_link(
325325
};
326326
}
327327

328-
Some((new_url.into_string(), strip_prefixes_suffixes(title).to_string()))
328+
Some((new_url.into(), strip_prefixes_suffixes(title).to_string()))
329329
}
330330

331331
/// Try to resolve path to local documentation via path-based links (i.e. `../gateway/struct.Shard.html`).
@@ -345,7 +345,7 @@ fn rewrite_url_link(db: &RootDatabase, def: ModuleDef, target: &str) -> Option<S
345345
get_symbol_filename(db, &def).as_deref().map(|f| url.join(f).ok()).flatten()
346346
})
347347
.and_then(|url| url.join(target).ok())
348-
.map(|url| url.into_string())
348+
.map(|url| url.into())
349349
}
350350

351351
/// Rewrites a markdown document, applying 'callback' to each link.

crates/rust-analyzer/src/to_proto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ pub(crate) fn url_from_abs_path(path: &Path) -> lsp_types::Url {
604604
// Note: lowercasing the `path` itself doesn't help, the `Url::parse`
605605
// machinery *also* canonicalizes the drive letter. So, just massage the
606606
// string in place.
607-
let mut url = url.into_string();
607+
let mut url: String = url.into();
608608
url[driver_letter_range].make_ascii_lowercase();
609609
lsp_types::Url::parse(&url).unwrap()
610610
}

0 commit comments

Comments
 (0)