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

This commit is contained in:
Simon B 2019-01-24 01:58:39 +01:00
parent 87a4e1e2d7
commit 0d606c0356

View file

@ -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<Transaction>,