Skip to content

Commit 9e3b949

Browse files
committed
Fix braces in panic message in test.
1 parent dd81c91 commit 9e3b949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/tests/nonzero.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn test_match_option_string() {
8585
let five = "Five".to_string();
8686
match Some(five) {
8787
Some(s) => assert_eq!(s, "Five"),
88-
None => panic!("unexpected None while matching on Some(String { ... })"),
88+
None => panic!("{}", "unexpected None while matching on Some(String { ... })"),
8989
}
9090
}
9191

0 commit comments

Comments
 (0)