Skip to content

Commit f13d785

Browse files
committed
broken_links: Fix rustdoc API usage
1 parent 1b5420a commit f13d785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/clippy/clippy_lints/src/doc/broken_link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub fn check(cx: &LateContext<'_>, bl: &PullDownBrokenLink<'_>, doc: &str, fragm
1919
}
2020

2121
fn warn_if_broken_link(cx: &LateContext<'_>, bl: &PullDownBrokenLink<'_>, doc: &str, fragments: &[DocFragment]) {
22-
if let Some(span) = source_span_for_markdown_range(cx.tcx, doc, &bl.span, fragments) {
22+
if let Some((span, _)) = source_span_for_markdown_range(cx.tcx, doc, &bl.span, fragments) {
2323
let mut len = 0;
2424

2525
// grab raw link data

0 commit comments

Comments
 (0)