From efb931346021e64a1302b34d54962ae1f14fa11d Mon Sep 17 00:00:00 2001 From: teor Date: Mon, 3 Aug 2020 17:16:29 +1000 Subject: [PATCH] fix: Resolve a type ambiguity in a proptest For some reason, implementing `PartialOrd for ExpandedDifficulty` (or its converse) makes this unrelated code ambiguous. --- zebra-chain/src/block/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra-chain/src/block/tests.rs b/zebra-chain/src/block/tests.rs index e7a7eee9..edd45bda 100644 --- a/zebra-chain/src/block/tests.rs +++ b/zebra-chain/src/block/tests.rs @@ -198,7 +198,7 @@ proptest! { #[test] fn blockheaderhash_roundtrip(hash in any::()) { let bytes = hash.zcash_serialize_to_vec()?; - let other_hash = bytes.zcash_deserialize_into()?; + let other_hash: BlockHeaderHash = bytes.zcash_deserialize_into()?; prop_assert_eq![hash, other_hash]; }