mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
Fix clippy errors on tests (#2160)
## Issue Addressed
There are some clippy error on tests.
## Proposed Changes
Enable clippy check on tests and fix the errors. 💪
This commit is contained in:
@@ -30,7 +30,7 @@ fn attestation_pruning_empty_wrap_around() {
|
||||
|
||||
// Add an attestation that would be surrounded with the modulo considered
|
||||
slasher.accept_attestation(indexed_att(
|
||||
v.clone(),
|
||||
v,
|
||||
2 * history_length - 3,
|
||||
2 * history_length - 2,
|
||||
1,
|
||||
@@ -48,7 +48,7 @@ fn pruning_with_map_full() {
|
||||
config.history_length = 1024;
|
||||
config.max_db_size_mbs = 1;
|
||||
|
||||
let slasher = Slasher::open(config.clone(), logger()).unwrap();
|
||||
let slasher = Slasher::open(config, logger()).unwrap();
|
||||
|
||||
let v = vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user