From 0d606c035629a110815a88a9f4ca2ee9ef778bf3 Mon Sep 17 00:00:00 2001 From: Simon B Date: Thu, 24 Jan 2019 01:58:39 +0100 Subject: [PATCH] clippy says: fn new should usually return self <-- I picked ignore, since this is test code waiting to be moved. And likely also renamed from "new" to maybe "new_mock_block" to make sure nobody finds it and wants to use it to build a non-test block --- core/src/core/block.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/core/block.rs b/core/src/core/block.rs index 72f62ba6c..b36d0409c 100644 --- a/core/src/core/block.rs +++ b/core/src/core/block.rs @@ -418,6 +418,7 @@ impl Block { /// TODO - Move this somewhere where only tests will use it. /// *** Only used in tests. *** /// + #[warn(clippy::new_ret_no_self)] pub fn new( prev: &BlockHeader, txs: Vec,