Skip to content

Commit 987c2ff

Browse files
Update clippy source code to changes on source_span_for_markdown_range
1 parent a0d6417 commit 987c2ff

File tree

1 file changed

+2
-2
lines changed
  • src/tools/clippy/clippy_lints/src/doc

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,8 @@ impl Fragments<'_> {
765765
/// get the span for the markdown range. Note that this function is not cheap, use it with
766766
/// caution.
767767
#[must_use]
768-
fn span(&self, cx: &LateContext<'_>, range: Range<usize>) -> Option<Span> {
769-
source_span_for_markdown_range(cx.tcx, self.doc, &range, self.fragments)
768+
fn span(self, cx: &LateContext<'_>, range: Range<usize>) -> Option<Span> {
769+
source_span_for_markdown_range(cx.tcx, self.doc, &range, self.fragments).map(|(sp, _)| sp)
770770
}
771771
}
772772

0 commit comments

Comments
 (0)