From 1fd0203f0356ca3933fd2c578e9c3026dc51900a Mon Sep 17 00:00:00 2001 From: Toni Peter Date: Mon, 5 Aug 2024 12:26:16 +0200 Subject: [PATCH] Fix line/col display in scannerctl/CliError. --- rust/scannerctl/src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/scannerctl/src/error.rs b/rust/scannerctl/src/error.rs index 93b366bd5..24d059298 100644 --- a/rust/scannerctl/src/error.rs +++ b/rust/scannerctl/src/error.rs @@ -79,7 +79,7 @@ impl Display for CliError { self.filename, self.kind .as_token() - .map(|x| { format!(", line: {}, col: {}", x.position.0, x.position.1) }) + .map(|x| { format!(", line: {}, col: {}", x.line_column.0, x.line_column.1) }) .unwrap_or_default(), self.kind )