From f466b5ee2f8c149d949f36ff7998458367fcd12f Mon Sep 17 00:00:00 2001 From: ISibboI Date: Wed, 2 Jun 2021 19:03:14 +0200 Subject: [PATCH] Try fixing panic_any import. --- tests/regex.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/regex.rs b/tests/regex.rs index c90d851..48b0a5e 100644 --- a/tests/regex.rs +++ b/tests/regex.rs @@ -1,7 +1,6 @@ #![cfg(feature = "regex_support")] use evalexpr::*; -use std::panic::panic_any; #[test] fn test_regex_functions() { @@ -18,7 +17,7 @@ fn test_regex_functions() { assert_eq!(regex, "["); assert!(message.contains("unclosed character class")); }, - v => panic_any!(v), + v => std::panic::panic_any!(v), }; assert_eq!( eval("str::regex_replace(\"foobar\", \".*?(o+)\", \"b$1\")"),