Skip to content

Commit 94ae18a

Browse files
committed
Fix ESRT on Linux
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent def3a53 commit 94ae18a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

framework_lib/src/esrt/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ use std::path::Path;
5050
/// assert_eq!(guid, None);
5151
/// ```
5252
pub fn guid_from_str(string: &str) -> Option<Guid> {
53+
let string = string.strip_suffix('\n').unwrap_or(string);
5354
let sections: Vec<&str> = string.split('-').collect();
5455
let time_low = u32::from_str_radix(sections[0], 16).ok()?;
5556
let time_mid = u16::from_str_radix(sections[1], 16).ok()?;

0 commit comments

Comments
 (0)