Skip to content

Commit

Permalink
clippy and revert original new_from_iter test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdjaustin committed Nov 8, 2023
1 parent 06efcb3 commit ff7b8ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion ipld/amt/src/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ where
#[cfg(test)]
mod tests {
use crate::Amt;
use fvm_ipld_blockstore::tracking::BSStats;
use fvm_ipld_blockstore::tracking::TrackingBlockstore;
use fvm_ipld_blockstore::MemoryBlockstore;
use fvm_ipld_encoding::BytesDe;
Expand Down
5 changes: 1 addition & 4 deletions ipld/amt/tests/amt_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
// SPDX-License-Identifier: Apache-2.0, MIT

use std::fmt::Debug;

use fvm_ipld_amt::AmtImpl;
use fvm_ipld_amt::{Amt, Amtv0, Error, MAX_INDEX};
use fvm_ipld_blockstore::tracking::{BSStats, TrackingBlockstore};
use fvm_ipld_blockstore::{Blockstore, MemoryBlockstore};
use fvm_ipld_encoding::de::DeserializeOwned;
use fvm_ipld_encoding::ser::Serialize;
use fvm_ipld_encoding::strict_bytes::ByteBuf;
use fvm_ipld_encoding::BytesDe;

fn assert_get<V, BS>(a: &Amt<V, BS>, i: u64, v: &V)
Expand Down Expand Up @@ -623,7 +620,7 @@ fn tbytes(bz: &[u8]) -> BytesDe {
#[test]
fn new_from_iter() {
let mem = MemoryBlockstore::default();
let data: Vec<String> = (0..10).map(|i| format!("thing{i}")).collect();
let data: Vec<String> = (0..1000).map(|i| format!("thing{i}")).collect();
let k = Amt::<&str, _>::new_from_iter(&mem, data.iter().map(|s| &**s)).unwrap();

let a: Amt<String, _> = Amt::load(&k, &mem).unwrap();
Expand Down

0 comments on commit ff7b8ae

Please sign in to comment.