Skip to content

Commit 9ac0d61

Browse files
Update clippy source code to changes on source_span_for_markdown_range
1 parent 2723a5d commit 9ac0d61

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
@@ -732,8 +732,8 @@ impl Fragments<'_> {
732732
/// get the span for the markdown range. Note that this function is not cheap, use it with
733733
/// caution.
734734
#[must_use]
735-
fn span(&self, cx: &LateContext<'_>, range: Range<usize>) -> Option<Span> {
736-
source_span_for_markdown_range(cx.tcx, self.doc, &range, self.fragments)
735+
fn span(self, cx: &LateContext<'_>, range: Range<usize>) -> Option<Span> {
736+
source_span_for_markdown_range(cx.tcx, self.doc, &range, self.fragments).map(|(sp, _)| sp)
737737
}
738738
}
739739

0 commit comments

Comments
 (0)