Skip to content

Commit 0a34ca5

Browse files
committed
fix: use panic instead of assert
Signed-off-by: Woshiluo Luo <woshiluo.luo@outlook.com>
1 parent e99f502 commit 0a34ca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/hifive-unmatched-a00.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn hifive_unmatched() {
5151
if let Some(stdout_path) = chosen.stdout_path {
5252
assert_eq!(stdout_path, "serial0\0");
5353
} else {
54-
assert!(false, "Failed to find chosen/stdout_path");
54+
panic!("Failed to find chosen/stdout_path");
5555
}
5656
}
5757
assert_eq!(t.cpus.timebase_frequency, 1000000);

0 commit comments

Comments
 (0)