Try fixing panic_any import.

This commit is contained in:
ISibboI 2021-06-02 19:03:14 +02:00 committed by GitHub
parent 0a9ef40321
commit f466b5ee2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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\")"),