From b54a917b1420f709d74b80e99c819ffe3e403ffa Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Fri, 5 Jun 2020 16:56:51 +0800 Subject: [PATCH] Use assert_eq for liballoc test --- src/liballoc/tests/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ fn drop(&mut self) { #[test] fn test_small_vec_struct() { - assert!(size_of::>() == size_of::() * 3); + assert_eq!(size_of::>(), size_of::() * 3); } #[test]