mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
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:
parent
87a4e1e2d7
commit
0d606c0356
1 changed files with 1 additions and 0 deletions
|
@ -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>,
|
||||
|
|
Loading…
Reference in a new issue