Skip to content

Commit 9412af6

Browse files
committed
fixup! Remove vendored guid_macros crate
1 parent 7867ff4 commit 9412af6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework_lib/src/esrt/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ fn esrt_from_sysfs(dir: &Path) -> io::Result<Esrt> {
356356
let last_attempt_version = fs::read_to_string(path.join("last_attempt_version"))?;
357357
let last_attempt_status = fs::read_to_string(path.join("last_attempt_status"))?;
358358
let esrt = EsrtResourceEntry {
359-
fw_class: GUID::parse(fw_class.trim()).expect("Kernel provided wrong value"),
359+
fw_class: Guid::from(GUID::parse(fw_class.trim()).expect("Kernel provided wrong value")),
360360
fw_type: fw_type
361361
.trim()
362362
.parse::<u32>()
@@ -446,7 +446,7 @@ pub fn get_esrt() -> Option<Esrt> {
446446
// TODO: The missing fields are present in Device Manager
447447
// So there must be a way to get at them
448448
let esrt = EsrtResourceEntry {
449-
fw_class: guid,
449+
fw_class: Guid::from(guid),
450450
fw_type,
451451
fw_version: ver,
452452
// TODO: Not exposed by windows

0 commit comments

Comments
 (0)