Skip to content

Commit

Permalink
chore(static_files): fix hacky type inference (#9150)
Browse files Browse the repository at this point in the history
  • Loading branch information
kien6034 authored Jun 27, 2024
1 parent 5b2cd27 commit 26b79f8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/storage/provider/src/providers/static_file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ mod tests {
};
use reth_primitives::{static_file::find_fixed_range, BlockNumber, B256, U256};
use reth_testing_utils::generators::{self, random_header_range};
use std::vec::IntoIter;

#[test]
fn test_snap() {
Expand Down Expand Up @@ -128,9 +129,7 @@ mod tests {
let provider = factory.provider().unwrap();
let tx = provider.tx_ref();

// Hacky type inference. TODO fix
let mut none_vec = Some(vec![vec![vec![0u8]].into_iter()]);
let _ = none_vec.take();
let none_vec: Option<Vec<IntoIter<Vec<u8>>>> = None;

// Generate list of hashes for filters & PHF
let mut cursor = tx.cursor_read::<RawTable<CanonicalHeaders>>().unwrap();
Expand Down

0 comments on commit 26b79f8

Please sign in to comment.