Skip to content

Commit 10d9e3c

Browse files
authored
Rollup merge of rust-lang#73017 - pickfire:liballoc-assert, r=Xanewok
Use assert_eq for liballoc test
2 parents 27376d5 + b54a917 commit 10d9e3c

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)