diff options
| author | Philipp Krones <hello@philkrones.com> | 2025-06-27 12:21:41 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2025-06-27 12:21:41 +0200 |
| commit | 4a8eec34ee888852f3f2b909c575df0bedf9f61a (patch) | |
| tree | 6c1cc0d478d0b244db48310d35b0a7c07cf89dca | |
| parent | 074ccaf3c0818c1c7162babe8e7874f1fa551e18 (diff) | |
| download | rust-4a8eec34ee888852f3f2b909c575df0bedf9f61a.tar.gz rust-4a8eec34ee888852f3f2b909c575df0bedf9f61a.zip | |
broken_links: Fix rustdoc API usage
| -rw-r--r-- | clippy_lints/src/doc/broken_link.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/doc/broken_link.rs b/clippy_lints/src/doc/broken_link.rs index a97b807e605..4af10510023 100644 --- a/clippy_lints/src/doc/broken_link.rs +++ b/clippy_lints/src/doc/broken_link.rs @@ -19,7 +19,7 @@ pub fn check(cx: &LateContext<'_>, bl: &PullDownBrokenLink<'_>, doc: &str, fragm } fn warn_if_broken_link(cx: &LateContext<'_>, bl: &PullDownBrokenLink<'_>, doc: &str, fragments: &[DocFragment]) { - if let Some(span) = source_span_for_markdown_range(cx.tcx, doc, &bl.span, fragments) { + if let Some((span, _)) = source_span_for_markdown_range(cx.tcx, doc, &bl.span, fragments) { let mut len = 0; // grab raw link data |
