From 1e081138befb42091a209684ba382c126952f6b0 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 8 Jan 2018 23:05:48 +0100 Subject: [PATCH] fix syntax error Signed-off-by: Igor Gnatenko --- 0001-tests-fix-syntax-error.patch | 26 ++++++++++++++++++++++++++ rust-siphasher.spec | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 0001-tests-fix-syntax-error.patch diff --git a/0001-tests-fix-syntax-error.patch b/0001-tests-fix-syntax-error.patch new file mode 100644 index 0000000..99690a2 --- /dev/null +++ b/0001-tests-fix-syntax-error.patch @@ -0,0 +1,26 @@ +From d3d78143b91d4d38503f87e00915c205d5ae0ec1 Mon Sep 17 00:00:00 2001 +From: Igor Gnatenko +Date: Mon, 8 Jan 2018 23:04:38 +0100 +Subject: [PATCH] tests: fix syntax error + +Signed-off-by: Igor Gnatenko +--- + 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 + diff --git a/rust-siphasher.spec b/rust-siphasher.spec index 5249ef0..c8d6566 100644 --- a/rust-siphasher.spec +++ b/rust-siphasher.spec @@ -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}