Format value with debug formatter in panic.

This commit is contained in:
ISibboI 2021-06-02 19:08:53 +02:00 committed by GitHub
parent 9e239cb0d8
commit d4812ef6e4
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_eq!(regex, "[");
assert!(message.contains("unclosed character class")); assert!(message.contains("unclosed character class"));
}, },
v => panic!("{}", v), v => panic!("{:?}", v),
}; };
assert_eq!( assert_eq!(
eval("str::regex_replace(\"foobar\", \".*?(o+)\", \"b$1\")"), eval("str::regex_replace(\"foobar\", \".*?(o+)\", \"b$1\")"),