diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-27 16:16:18 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-06-23 16:02:34 +0200 |
| commit | 7a6f7bc7a668aa309249ca7e8a4275f7fedce173 (patch) | |
| tree | e37d198b888e130eb115850ced96ee809ecfbd60 | |
| parent | 1d764e022f8d1dd9ab2a496d559f3af6800e4946 (diff) | |
| download | rust-7a6f7bc7a668aa309249ca7e8a4275f7fedce173.tar.gz rust-7a6f7bc7a668aa309249ca7e8a4275f7fedce173.zip | |
Update clippy source code to changes on `source_span_for_markdown_range`
| -rw-r--r-- | clippy_lints/src/doc/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/doc/mod.rs b/clippy_lints/src/doc/mod.rs index e0fc2fd9347..d38588bb799 100644 --- a/clippy_lints/src/doc/mod.rs +++ b/clippy_lints/src/doc/mod.rs @@ -765,8 +765,8 @@ impl Fragments<'_> { /// get the span for the markdown range. Note that this function is not cheap, use it with /// caution. #[must_use] - fn span(&self, cx: &LateContext<'_>, range: Range<usize>) -> Option<Span> { - source_span_for_markdown_range(cx.tcx, self.doc, &range, self.fragments) + fn span(self, cx: &LateContext<'_>, range: Range<usize>) -> Option<Span> { + source_span_for_markdown_range(cx.tcx, self.doc, &range, self.fragments).map(|(sp, _)| sp) } } |
