Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--Cargo.lock8
-rw-r--r--crates/ide/Cargo.toml4
-rw-r--r--crates/ide/src/doc_links.rs9
3 files changed, 8 insertions, 13 deletions
diff --git a/Cargo.lock b/Cargo.lock
index e0e5be721f..350d7a26a8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1245,9 +1245,9 @@ dependencies = [
[[package]]
name = "pulldown-cmark"
-version = "0.8.0"
+version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ffade02495f22453cd593159ea2f59827aae7f53fa8323f756799b670881dcf8"
+checksum = "34f197a544b0c9ab3ae46c359a7ec9cbbb5c7bf97054266fecb7ead794a181d6"
dependencies = [
"bitflags",
"memchr",
@@ -1256,9 +1256,9 @@ dependencies = [
[[package]]
name = "pulldown-cmark-to-cmark"
-version = "7.1.1"
+version = "9.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8bc14bc6b9f5881f240f9766414707ab24f972bcc3388589fe15b22fb15dc60d"
+checksum = "3f94dc756ef5c50ad28ccea8428ba5de9f4dca1fff6516a26b85e0b125a70d17"
dependencies = [
"pulldown-cmark",
]
diff --git a/crates/ide/Cargo.toml b/crates/ide/Cargo.toml
index c5e79838fc..ae1109a63d 100644
--- a/crates/ide/Cargo.toml
+++ b/crates/ide/Cargo.toml
@@ -16,8 +16,8 @@ itertools = "0.10.0"
tracing = "0.1"
rustc-hash = "1.1.0"
oorandom = "11.1.2"
-pulldown-cmark-to-cmark = "7.1"
-pulldown-cmark = { version = "0.8.0", default-features = false }
+pulldown-cmark-to-cmark = "9.0"
+pulldown-cmark = { version = "0.9", default-features = false }
url = "2.1.1"
dot = "0.1.4"
diff --git a/crates/ide/src/doc_links.rs b/crates/ide/src/doc_links.rs
index 4985a71a85..c8a645b032 100644
--- a/crates/ide/src/doc_links.rs
+++ b/crates/ide/src/doc_links.rs
@@ -282,13 +282,8 @@ impl DocCommentToken {
}
}
-fn broken_link_clone_cb<'a, 'b>(link: BrokenLink<'a>) -> Option<(CowStr<'b>, CowStr<'b>)> {
- // These allocations are actually unnecessary but the lifetimes on BrokenLinkCallback are wrong
- // this is fixed in the repo but not on the crates.io release yet
- Some((
- /*url*/ link.reference.to_owned().into(),
- /*title*/ link.reference.to_owned().into(),
- ))
+fn broken_link_clone_cb<'a>(link: BrokenLink<'a>) -> Option<(CowStr<'a>, CowStr<'a>)> {
+ Some((/*url*/ link.reference.clone(), /*title*/ link.reference))
}
// FIXME: