Fix braces in panic message in test.

This commit is contained in:
Mara Bos 2020-10-19 10:07:30 +02:00
parent dd81c91028
commit 9e3b949b8c
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ fn test_match_option_string() {
let five = "Five".to_string();
match Some(five) {
Some(s) => assert_eq!(s, "Five"),
None => panic!("unexpected None while matching on Some(String { ... })"),
None => panic!("{}", "unexpected None while matching on Some(String { ... })"),
}
}