Skip to content

Commit e85ca03

Browse files
committed
Make the UEFI enums extensible
Some UEFI enums are meant to be extended by the user or the firmware. This commit ensures this is possible by marking the field containing the enum value as `pub`. Closes #59
1 parent a556d22 commit e85ca03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data_types/enums.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ macro_rules! newtype_enum {
5353
$(#[$type_attrs])*
5454
#[repr(transparent)]
5555
#[derive(Clone, Copy, Eq, PartialEq)]
56-
pub struct $type($base_integer);
56+
pub struct $type(pub $base_integer);
5757

5858
$(#[$impl_attrs])*
5959
#[allow(unused)]

0 commit comments

Comments
 (0)