Skip to content

Commit b54a917

Browse files
committed
Use assert_eq for liballoc test
1 parent 219380d commit b54a917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/tests/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl Drop for DropCounter<'_> {
1616

1717
#[test]
1818
fn test_small_vec_struct() {
19-
assert!(size_of::<Vec<u8>>() == size_of::<usize>() * 3);
19+
assert_eq!(size_of::<Vec<u8>>(), size_of::<usize>() * 3);
2020
}
2121

2222
#[test]

0 commit comments

Comments
 (0)