From 84b5057b8ea435d968b1cb244a44b80c0e093f30 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 2 Jun 2021 18:33:27 +0300 Subject: [PATCH] Fix lint in tests folder. --- tests/regex.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/regex.rs b/tests/regex.rs index 5a9265a..c90d851 100644 --- a/tests/regex.rs +++ b/tests/regex.rs @@ -1,6 +1,7 @@ #![cfg(feature = "regex_support")] use evalexpr::*; +use std::panic::panic_any; #[test] fn test_regex_functions() { @@ -17,7 +18,7 @@ fn test_regex_functions() { assert_eq!(regex, "["); assert!(message.contains("unclosed character class")); }, - v => panic!(v), + v => panic_any!(v), }; assert_eq!( eval("str::regex_replace(\"foobar\", \".*?(o+)\", \"b$1\")"),