From 92ef1d69474e13218a0a3d3682e879309e5f2ca2 Mon Sep 17 00:00:00 2001 From: Ben Heidemann Date: Tue, 5 Nov 2024 13:20:54 +0000 Subject: [PATCH] refactor: rename script_source_lines to script_runtime_source_lines --- cli/tools/coverage/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/tools/coverage/mod.rs b/cli/tools/coverage/mod.rs index 07ce004dad..e07d1a84d0 100644 --- a/cli/tools/coverage/mod.rs +++ b/cli/tools/coverage/mod.rs @@ -422,7 +422,7 @@ fn generate_coverage_report( coverage_report.found_lines = if let Some(source_map) = maybe_source_map.as_ref() { - let script_source_lines = script_runtime_source.lines().collect::>(); + let script_runtime_source_lines = script_runtime_source.lines().collect::>(); let mut found_lines = line_counts .iter() .enumerate() @@ -434,7 +434,7 @@ fn generate_coverage_report( let dst_line = token.get_dst_line() as usize; dst_line == index && { let dst_col = token.get_dst_col() as usize; - let content = script_source_lines + let content = script_runtime_source_lines .get(dst_line) .and_then(|line| { line.get(dst_col..std::cmp::min(dst_col + 2, line.len()))