File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -356,7 +356,7 @@ fn esrt_from_sysfs(dir: &Path) -> io::Result<Esrt> {
356
356
let last_attempt_version = fs:: read_to_string ( path. join ( "last_attempt_version" ) ) ?;
357
357
let last_attempt_status = fs:: read_to_string ( path. join ( "last_attempt_status" ) ) ?;
358
358
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" ) ) ,
360
360
fw_type : fw_type
361
361
. trim ( )
362
362
. parse :: < u32 > ( )
@@ -446,7 +446,7 @@ pub fn get_esrt() -> Option<Esrt> {
446
446
// TODO: The missing fields are present in Device Manager
447
447
// So there must be a way to get at them
448
448
let esrt = EsrtResourceEntry {
449
- fw_class : guid,
449
+ fw_class : Guid :: from ( guid) ,
450
450
fw_type,
451
451
fw_version : ver,
452
452
// TODO: Not exposed by windows
You can’t perform that action at this time.
0 commit comments