Skip to content

Commit f5ccaa6

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

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/dev.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2952,7 +2952,9 @@ 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)
2956+
.await
2957+
.unwrap();
29562958
let mut buf = Qcow2IoBuf::<u8>::new(4096);
29572959
let _ = io.read_to(0, &mut buf).await;
29582960
let header = Qcow2Header::from_buf(&buf).unwrap();

0 commit comments

Comments
 (0)