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()