about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-06-05 13:07:08 +0200
committerGitHub <noreply@github.com>2020-06-05 13:07:08 +0200
commit10d9e3c9028b5a15c921df20f9c50de365f05339 (patch)
tree489594885b9c3dbe88808c9878592b20a7f30431 /src
parent27376d57b60178eb65f625b2bdcdb56aa90709e1 (diff)
parentb54a917b1420f709d74b80e99c819ffe3e403ffa (diff)
Rollup merge of #73017 - pickfire:liballoc-assert, r=Xanewok
Use assert_eq for liballoc test
Diffstat (limited to 'src')
-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]