Use string format panicking syntax.
This will both make it compile, and make it 2021 edition compatible.
This commit is contained in:
parent
f466b5ee2f
commit
9e239cb0d8
@ -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\")"),
|
||||
|
Loading…
Reference in New Issue
Block a user