Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rklaehn committed Oct 6, 2023
1 parent 96666a2 commit 31167bc
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions iroh/tests/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,8 @@ async fn gc_flat_basics() -> Result<()> {
fn simulate_remote(data: &[u8]) -> (blake3::Hash, Cursor<Bytes>) {
let outboard = bao_tree::io::outboard::PostOrderMemOutboard::create(data, IROH_BLOCK_SIZE);
let mut encoded = Vec::new();
bao_tree::io::sync::encode_ranges_validated(
data,
&outboard,
&ChunkRanges::all(),
&mut encoded,
)
.unwrap();
bao_tree::io::sync::encode_ranges_validated(data, &outboard, &ChunkRanges::all(), &mut encoded)
.unwrap();
let hash = outboard.root();
(hash, Cursor::new(encoded.into()))
}
Expand Down

0 comments on commit 31167bc

Please sign in to comment.