From 9e239cb0d8c6c41224eb79bc5ce9dac03e5dd5bb Mon Sep 17 00:00:00 2001 From: ISibboI Date: Wed, 2 Jun 2021 19:07:07 +0200 Subject: [PATCH] Use string format panicking syntax. This will both make it compile, and make it 2021 edition compatible. --- tests/regex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regex.rs b/tests/regex.rs index 48b0a5e..e76dfcf 100644 --- a/tests/regex.rs +++ b/tests/regex.rs @@ -17,7 +17,7 @@ fn test_regex_functions() { assert_eq!(regex, "["); assert!(message.contains("unclosed character class")); }, - v => std::panic::panic_any!(v), + v => panic!("{}", v), }; assert_eq!( eval("str::regex_replace(\"foobar\", \".*?(o+)\", \"b$1\")"),