diff options
| author | Ivan Tham <pickfire@riseup.net> | 2020-06-05 16:56:51 +0800 |
|---|---|---|
| committer | Ivan Tham <pickfire@riseup.net> | 2020-06-05 16:56:51 +0800 |
| commit | b54a917b1420f709d74b80e99c819ffe3e403ffa (patch) | |
| tree | 71ee67cffab09198877a7cb6f7f06052da216367 /src/liballoc/tests | |
| parent | 219380d840877de97b0e17674be7212ebc929d51 (diff) | |
| download | rust-b54a917b1420f709d74b80e99c819ffe3e403ffa.tar.gz rust-b54a917b1420f709d74b80e99c819ffe3e403ffa.zip | |
Use assert_eq for liballoc test
Diffstat (limited to 'src/liballoc/tests')
| -rw-r--r-- | src/liballoc/tests/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/tests/vec.rs b/src/liballoc/tests/vec.rs index b16044d9640..b73fd95ab6a 100644 --- a/src/liballoc/tests/vec.rs +++ b/src/liballoc/tests/vec.rs @@ -16,7 +16,7 @@ impl Drop for DropCounter<'_> { #[test] fn test_small_vec_struct() { - assert!(size_of::<Vec<u8>>() == size_of::<usize>() * 3); + assert_eq!(size_of::<Vec<u8>>(), size_of::<usize>() * 3); } #[test] |
