Use string format panicking syntax.

This will both make it compile, and make it 2021 edition compatible.
This commit is contained in:
ISibboI 2021-06-02 19:07:07 +02:00 committed by GitHub
parent f466b5ee2f
commit 9e239cb0d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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