From debf3beb8e5b0f8bfafbf12c99322cb8149ac4d4 Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Thu, 13 Nov 2025 15:22:48 -0800 Subject: [PATCH] Fixed broken tests --- tests/jdbc_rule.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/jdbc_rule.rs b/tests/jdbc_rule.rs index def97a9..cff5393 100644 --- a/tests/jdbc_rule.rs +++ b/tests/jdbc_rule.rs @@ -29,7 +29,7 @@ fn jdbc_rule_matches_expected_patterns() -> Result<()> { let matches: BTreeSet = regex .captures_iter(sample.as_bytes()) - .filter_map(|caps| caps.name("TOKEN")) + .filter_map(|caps| caps.get(1)) .map(|m| String::from_utf8_lossy(m.as_bytes()).into_owned()) .collect(); @@ -60,7 +60,7 @@ fn jdbc_rule_respects_user_skip_regex() -> Result<()> { let matches: Vec = regex .captures_iter(sample.as_bytes()) - .filter_map(|caps| caps.name("TOKEN")) + .filter_map(|caps| caps.get(1)) .map(|m| String::from_utf8_lossy(m.as_bytes()).into_owned()) .collect();