Skip to content

Commit 016e890

Browse files
committed
XXX make device paths suck less
1 parent 22c125c commit 016e890

File tree

1 file changed

+9
-6
lines changed
  • uefi-test-runner/src/boot

1 file changed

+9
-6
lines changed

uefi-test-runner/src/boot/mod.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,20 @@ fn test_load_image(bt: &BootServices) {
6060
"{:#?}",
6161
image_device_path
6262
.to_text_by_node(bt)
63-
// CString16 -> Rust String
63+
// CString16 -> Rust String
6464
.unwrap()
6565
.iter()
6666
.map(|(a, b)| (a, b.to_string()))
6767
.collect::<alloc::vec::Vec<_>>()
6868
);
69-
log::debug!("{:#?}", image_device_path.to_text(bt).unwrap()
70-
// CString16 -> Rust String
71-
.iter()
72-
.map(|a| a.to_string())
73-
.collect::<alloc::vec::Vec<_>>());
69+
log::debug!(
70+
"{:#?}",
71+
image_device_path
72+
.to_text(bt)
73+
.unwrap()
74+
// CString16 -> Rust String
75+
.to_string()
76+
);
7477
}
7578

7679
// Get the file-path portion of the device path which is typically behind

0 commit comments

Comments
 (0)