about summary refs log tree commit diff
path: root/src/liballoc/tests
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-06-05 16:56:51 +0800
committerIvan Tham <pickfire@riseup.net>2020-06-05 16:56:51 +0800
commitb54a917b1420f709d74b80e99c819ffe3e403ffa (patch)
tree71ee67cffab09198877a7cb6f7f06052da216367 /src/liballoc/tests
parent219380d840877de97b0e17674be7212ebc929d51 (diff)
downloadrust-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.rs2
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]