We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70e4cb5 commit bc2ed48Copy full SHA for bc2ed48
integration_tests/src/lib.rs
@@ -3840,16 +3840,14 @@ mod test {
3840
// Write data in
3841
guest
3842
.write(
3843
- Block::new(0, BLOCK_SIZE.trailing_zeros()),
+ BlockIndex(0),
3844
BytesMut::from(vec![0x55; BLOCK_SIZE * 10].as_slice()),
3845
)
3846
.await?;
3847
3848
// Read back our block post replacement, verify contents
3849
let mut buffer = Buffer::new(10, BLOCK_SIZE);
3850
- guest
3851
- .read(Block::new(0, BLOCK_SIZE.trailing_zeros()), &mut buffer)
3852
- .await?;
+ guest.read(BlockIndex(0), &mut buffer).await?;
3853
3854
assert_eq!(vec![0x55_u8; BLOCK_SIZE * 10], &buffer[..]);
3855
0 commit comments