Skip to content

Commit b486863

Browse files
Update clippy source code to changes on source_span_for_markdown_range
1 parent ec9530a commit b486863

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ struct Fragments<'a> {
731731

732732
impl Fragments<'_> {
733733
fn span(self, cx: &LateContext<'_>, range: Range<usize>) -> Option<Span> {
734-
source_span_for_markdown_range(cx.tcx, self.doc, &range, self.fragments)
734+
source_span_for_markdown_range(cx.tcx, self.doc, &range, self.fragments).map(|(sp, _)| sp)
735735
}
736736
}
737737

0 commit comments

Comments
 (0)