fix syntax error

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 7 years ago
parent 8e14b2107b
commit 1e081138be

@ -0,0 +1,26 @@
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

@ -15,6 +15,8 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
# Initial patched metadata
# * Clippy is nightly
Patch0: siphasher-0.2.2-fix-metadata.diff
# https://github.com/jedisct1/rust-siphash/pull/5
Patch1: 0001-tests-fix-syntax-error.patch
ExclusiveArch: %{rust_arches}

Loading…
Cancel
Save