Skip to content

Commit e2a2196

Browse files
committed
Fix test build: unwrap new() Result
1 parent e256ee2 commit e2a2196

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dev.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2952,7 +2952,7 @@ mod tests {
29522952
rt.block_on(async move {
29532953
let size = 64_u64 << 20;
29542954
let img_file = make_temp_qcow2_img(size, 16, 4);
2955-
let io = Qcow2IoTokio::new(&img_file.path().to_path_buf(), true, false).await;
2955+
let io = Qcow2IoTokio::new(&img_file.path().to_path_buf(), true, false).await.unwrap();
29562956
let mut buf = Qcow2IoBuf::<u8>::new(4096);
29572957
let _ = io.read_to(0, &mut buf).await;
29582958
let header = Qcow2Header::from_buf(&buf).unwrap();

0 commit comments

Comments
 (0)