We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.as_str()
CowStr::Borrowed
1 parent f7983ca commit 6f2e1c6Copy full SHA for 6f2e1c6
src/librustdoc/html/markdown.rs
@@ -934,7 +934,7 @@ impl Markdown<'_> {
934
if let Some(link) =
935
links.iter().find(|link| &*link.original_text == broken_link.reference)
936
{
937
- Some((CowStr::Borrowed(&link.href), CowStr::Borrowed(&link.new_text)))
+ Some((link.href.as_str().into(), link.new_text.as_str().into()))
938
} else {
939
None
940
}
@@ -1014,7 +1014,7 @@ impl MarkdownSummaryLine<'_> {
1014
1015
1016
1017
1018
1019
1020
0 commit comments