Skip to content

Commit ff7da32

Browse files
authored
Merge pull request #3447 from phansch/small_rename
s/file_map/source_map
2 parents 2f6881c + c4b08a5 commit ff7da32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/utils/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,9 @@ pub fn snippet_block<'a, 'b, T: LintContext<'b>>(cx: &T, span: Span, default: &'
413413

414414
/// Returns a new Span that covers the full last line of the given Span
415415
pub fn last_line_of_span<'a, T: LintContext<'a>>(cx: &T, span: Span) -> Span {
416-
let file_map_and_line = cx.sess().source_map().lookup_line(span.lo()).unwrap();
417-
let line_no = file_map_and_line.line;
418-
let line_start = &file_map_and_line.sf.lines[line_no];
416+
let source_map_and_line = cx.sess().source_map().lookup_line(span.lo()).unwrap();
417+
let line_no = source_map_and_line.line;
418+
let line_start = &source_map_and_line.sf.lines[line_no];
419419
Span::new(*line_start, span.hi(), span.ctxt())
420420
}
421421

0 commit comments

Comments
 (0)