Cleanup nightly warnings (#7055)

This commit is contained in:
Jack May
2019-11-19 20:15:37 -08:00
committed by GitHub
parent d32a072190
commit d2ed921bc6
7 changed files with 17 additions and 19 deletions

View File

@ -186,7 +186,7 @@ impl RepairService {
blocktree: &Blocktree,
max_repairs: usize,
repair_range: &RepairSlotRange,
) -> Result<(Vec<RepairType>)> {
) -> Result<Vec<RepairType>> {
// Slot height and shred indexes for shreds we want to repair
let mut repairs: Vec<RepairType> = vec![];
for slot in repair_range.start..=repair_range.end {
@ -218,7 +218,7 @@ impl RepairService {
blocktree: &Blocktree,
root: u64,
max_repairs: usize,
) -> Result<(Vec<RepairType>)> {
) -> Result<Vec<RepairType>> {
// Slot height and shred indexes for shreds we want to repair
let mut repairs: Vec<RepairType> = vec![];
Self::generate_repairs_for_fork(blocktree, &mut repairs, max_repairs, root);