From 25f63518f45995ebe3ca47fe8b5c6167575fcd55 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Sun, 16 Aug 2020 21:31:28 -0400 Subject: [PATCH] Allow clippy::unit_arg because of derive(Arbitrary) --- zebra-chain/src/block.rs | 1 + zebra-chain/src/work/difficulty.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/zebra-chain/src/block.rs b/zebra-chain/src/block.rs index 72bc908b..c612be7d 100644 --- a/zebra-chain/src/block.rs +++ b/zebra-chain/src/block.rs @@ -1,4 +1,5 @@ //! Blocks and block-related structures (heights, headers, etc.) +#![allow(clippy::unit_arg)] mod hash; mod header; diff --git a/zebra-chain/src/work/difficulty.rs b/zebra-chain/src/work/difficulty.rs index 98906fec..7802d02d 100644 --- a/zebra-chain/src/work/difficulty.rs +++ b/zebra-chain/src/work/difficulty.rs @@ -9,6 +9,7 @@ //! The block work is used to find the chain with the greatest total work. Each //! block's work value depends on the fixed threshold in the block header, not //! the actual work represented by the block header hash. +#![allow(clippy::unit_arg)] use crate::block;