You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-siphasher/0001-tests-fix-syntax-error...

27 lines
774 B

From d3d78143b91d4d38503f87e00915c205d5ae0ec1 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date: Mon, 8 Jan 2018 23:04:38 +0100
Subject: [PATCH] tests: fix syntax error
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
---
src/tests.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tests.rs b/src/tests.rs
index 25663f7..c7705fc 100644
--- a/src/tests.rs
+++ b/src/tests.rs
@@ -258,7 +258,7 @@ fn test_hash_usize() {
#[cfg(target_arch = "x86")]
fn test_hash_usize() {
let val = 0xdeadbeef_deadbeef_u64;
- assert_ne(hash(&(val as u64)), hash(&(val as usize)));
+ assert_ne!(hash(&(val as u64)), hash(&(val as usize)));
assert_eq!(hash(&(val as u32)), hash(&(val as usize)));
}
--
2.15.1