From 74f7d6bc7a13d3df69bf56d689d296bf3d70f285 Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 6 Dec 2023 10:10:29 +1000 Subject: [PATCH] Fix incorrect types --- zebra-scan/src/storage/db/sapling.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zebra-scan/src/storage/db/sapling.rs b/zebra-scan/src/storage/db/sapling.rs index 908adeb4f3e..95f78dd1714 100644 --- a/zebra-scan/src/storage/db/sapling.rs +++ b/zebra-scan/src/storage/db/sapling.rs @@ -24,7 +24,8 @@ use std::{ }; use itertools::Itertools; -use zebra_chain::{block::Height, transaction}; + +use zebra_chain::block::Height; use zebra_state::{ AsColumnFamilyRef, ReadDisk, SaplingScannedDatabaseEntry, SaplingScannedDatabaseIndex, SaplingScannedResult, SaplingScanningKey, TransactionIndex, WriteDisk, @@ -85,7 +86,7 @@ impl Storage { // But we want Vec, with empty Vecs instead of [None, None, ...] results .into_iter() - .map(|(index, vector)| -> (Height, Vec) { + .map(|(index, vector)| -> (Height, Vec) { (index, vector.into_iter().flatten().collect()) }) .collect()