From 30c5d87185f8a88ae556ae5261fa8e5fd6140606 Mon Sep 17 00:00:00 2001 From: arya2 Date: Tue, 21 Mar 2023 14:11:23 -0400 Subject: [PATCH] updates column in issue refs --- zebra-utils/src/bin/search-issue-refs/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zebra-utils/src/bin/search-issue-refs/main.rs b/zebra-utils/src/bin/search-issue-refs/main.rs index a908a85d670..156ccef359b 100644 --- a/zebra-utils/src/bin/search-issue-refs/main.rs +++ b/zebra-utils/src/bin/search-issue-refs/main.rs @@ -129,7 +129,11 @@ async fn main() -> Result<()> { PossibleIssueRef { file_path: file_path.clone(), line_number: line_idx + 1, - column: potential_issue_ref.start() + 1, + column: captures + .get(1) + .expect("matches should have 2 captures") + .start() + + 1, id, } }))