Skip to content

Commit e3e6133

Browse files
committed
Bump pulldown-cmark and pulldown-cmark-to-cmark
1 parent 09fb755 commit e3e6133

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

Cargo.lock

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

crates/ide/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ itertools = "0.10.0"
1616
tracing = "0.1"
1717
rustc-hash = "1.1.0"
1818
oorandom = "11.1.2"
19-
pulldown-cmark-to-cmark = "7.1"
20-
pulldown-cmark = { version = "0.8.0", default-features = false }
19+
pulldown-cmark-to-cmark = "9.0"
20+
pulldown-cmark = { version = "0.9", default-features = false }
2121
url = "2.1.1"
2222
dot = "0.1.4"
2323

crates/ide/src/doc_links.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,8 @@ impl DocCommentToken {
282282
}
283283
}
284284

285-
fn broken_link_clone_cb<'a, 'b>(link: BrokenLink<'a>) -> Option<(CowStr<'b>, CowStr<'b>)> {
286-
// These allocations are actually unnecessary but the lifetimes on BrokenLinkCallback are wrong
287-
// this is fixed in the repo but not on the crates.io release yet
288-
Some((
289-
/*url*/ link.reference.to_owned().into(),
290-
/*title*/ link.reference.to_owned().into(),
291-
))
285+
fn broken_link_clone_cb<'a>(link: BrokenLink<'a>) -> Option<(CowStr<'a>, CowStr<'a>)> {
286+
Some((/*url*/ link.reference.clone(), /*title*/ link.reference))
292287
}
293288

294289
// FIXME:

0 commit comments

Comments
 (0)